title: PHPmailer from localhost?
body: <p>I'm very new to PHP. I downloaded a phpmailer script (with files) from here -> <a href="https://github.com/PHPMailer/PHPMailer" rel="nofollow">phpmailer</a></p>
  
  <p>I'm using XAMPP and I located the files in:</p>
  
  <p>\htdocs\QMS\phpmailer</p>
  
  <p>My php script resides in: \htdocs\QMS\</p>
  
  <p>I get the message that the mail was sent, but I do not see anything in my inbox, trash, or spam. I tried other email addresses and still nothing.</p>
  
  <p>Here's the code: (*email addresses and names have been masked with "xxx")</p>
  
  <pre><code>&lt;?php
  require_once('phpmailer/class.phpmailer.php');
  
  $mail = new PHPMailer(); // defaults to using php "mail()"
  $mail-&gt;AddReplyTo("xxxx@mycompany.com","xxx xxx");
  $mail-&gt;SetFrom('xxxx@mycompany.com","xxx xxx');
  
  $mail-&gt;AddReplyTo('xxxx@mycompany.com","xxx xxx');
  
  $body = "This is a test... It works!";
  $address = "xxxx@mycompany.com";
  $mail-&gt;AddAddress($address, "xxx xxx");
  
  $mail-&gt;Subject    = "A subject line here";
  
  $mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
  
  $mail-&gt;MsgHTML($body);
  
  $mail-&gt;AddAttachment("images/phpmailer.gif");      // attachment
  $mail-&gt;AddAttachment("images/phpmailer_mini.gif"); // attachment
  
  if(!$mail-&gt;Send()) {
    echo "Mailer Error: " . $mail-&gt;ErrorInfo;
  } else {
    echo "Message sent!";
  }
  
  ?&gt;
  </code></pre>