title: Getting warning message in Gmail Account when I send email by using phpmailer()
body: <p>I am using phpmailer() to send email from my website. But when It's sent email I see following warning message. </p>
  
  <p><img src="https://i.stack.imgur.com/c0jsQ.png" alt="enter image description here"></p>
  
  <p>I can't understand why it's showing and how can I fix this error message. Can anyone tell me about it ? </p>
  
  <p>Following is my code : </p>
  
  <pre><code>&lt;?php
    require_once("mail/PHPMailerAutoload.php");
  
    $mail = new PHPMailer;
    $mail-&gt;setFrom($email);
    $mail-&gt;addReplyTo('toemail@gmail.com', 'First Last');
    $mail-&gt;addAddress('toemail@gmail.com', 'First Last');
    $mail-&gt;Subject = 'PHPMailer mail() test';
    $mail-&gt;msgHTML(file_get_contents('mail/contents.html'), dirname(__FILE__));
    $mail-&gt;AltBody = 'This is a plain-text message body';
    $mail-&gt;addAttachment('mail/images/phpmailer_mini.png');
  
    if (!$mail-&gt;send()) {
      echo "Mailer Error: " . $mail-&gt;ErrorInfo;
    } else {
      echo "Message sent!";
    }
    ?&gt;
  </code></pre>