title: Using SMTP PHPMailer for 'Domain' email address, email sent but not recieved
body: <p>I am using PHPMailer to send email. It works fine when I use gmail smtp but when I try using my domain smtp what I see on screen is 'message sent!' but I don't receive any email at all. I have tried using debugger, it says</p>
  
  <pre><code>We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. 
  </code></pre>
  
  <p>and here is my code</p>
  
  <pre><code>&lt;?php
  date_default_timezone_set('Etc/UTC');
  //Load PHPMailer dependencies
  require_once 'PHPMailerAutoload.php';
  require_once 'class.phpmailer.php';
  require_once 'class.smtp.php';
  
  /* CONFIGURATION */
  $crendentials = array(
      'email'     =&gt; 'xxxxx@example.com',    
      'password'  =&gt; 'xxxxxx'               
      );
  
  $smtp = array(
  
  'host' =&gt; 'secure.ehostpk.com',
  'port' =&gt; 465,
  'username' =&gt; $crendentials['email'],
  'password' =&gt; $crendentials['password'],
  'secure' =&gt; 'ssl' //SSL or TLS
  
  );
  
  /* TO, SUBJECT, CONTENT */
  $to         = 'xxxxxx@example.com'; //The 'To' field
  $subject    = 'This is a test email sent with PHPMailer';
  $content    = 'This is the HTML message body &lt;b&gt;in bold!&lt;/b&gt;';
  
  
  
  $mailer = new PHPMailer();
  
  //SMTP Configuration
  $mailer-&gt;isSMTP();
  $mailer-&gt;SMTPDebug  = 2;
  $mailer-&gt;SMTPAuth   = true; //We need to authenticate
  $mailer-&gt;Host       = $smtp['host'];
  $mailer-&gt;Port       = $smtp['port'];
  $mailer-&gt;Username   = $smtp['username'];
  $mailer-&gt;Password   = $smtp['password'];
  $mailer-&gt;SMTPSecure = $smtp['secure']; 
  
  //Now, send mail :
  //From - To :
  $mailer-&gt;From       = $crendentials['email'];
  $mailer-&gt;FromName   = 'Team'; //Optional
  $mailer-&gt;addAddress($to);  // Add a recipient
  
  //Subject - Body :
  $mailer-&gt;Subject        = $subject;
  $mailer-&gt;Body           = $content;
  $mailer-&gt;isHTML(true); //Mail body contains HTML tags
  
  //Check if mail is sent :
  if(!$mailer-&gt;send()) {
      echo 'Error sending mail : ' . $mailer-&gt;ErrorInfo;
  } else {
      echo 'Message sent !';
  }
  </code></pre>
  
  <p>I have searched a lot and I don't understand what should I do. Any help would be greatly appreciated.</p>