title: PHPmailer smtp GoDaddy problem "SMTP -> ERROR: DATA not accepted from server"
body: <p>i'm having a problem with sending a mail with PHPmailer trough SMTP.</p>
  
  <p>The mail is sended after 5 seconds, but it still prompts me the error:</p>
  
  <pre><code>SMTP -&gt; ERROR: DATA not accepted from server
  </code></pre>
  
  <p>but the mail is sended, but after 5 seconds, and i believe it has to do with a line from </p>
  
  <p><strong>class.phpmailer.php</strong></p>
  
  <pre><code>public $Timeout       = 5;
  </code></pre>
  
  <p>because when i set this to 10 seconds, it waits 10 seconds ...</p>
  
  <p>The problem is when i try to add an anchor hyperlink in the body html, for example, if i try to send</p>
  
  <pre><code>&lt;a&gt;nonlink&lt;/a&gt; &lt;br&gt; &lt;b&gt;bold text&lt;/b&gt;
  </code></pre>
  
  <p>it sends the mail with no problem and the html code is fine, but when i send</p>
  
  <pre><code>&lt;a href="http://www.google.com"&gt;nonlink&lt;/a&gt; &lt;br&gt; &lt;b&gt;bold text&lt;/b&gt;
  </code></pre>
  
  <p>it gives me that error ....</p>
  
  <p>my sending code is:</p>
  
  <pre><code>/*SEND MAIL*/
  
  //error_reporting(E_ALL);
  //error_reporting(E_STRICT);
  error_reporting(0);
  
  date_default_timezone_set('America/Toronto');
  
  require_once('../../library/class.phpmailer.php');
  //include("class.smtp.php"); // optional, gets called from within class.phpmailer.php if not already loaded
  
  $mail             = new PHPMailer();
  
  $Link = '&lt;a href="http://www.google.com"&gt;Confirm user&lt;/a&gt;';
  
  
  $body             = $Link;
  /*$body             = eregi_replace("[\]",'',$body);*/
  
  $mail-&gt;IsSMTP(); // telling the class to use SMTP
  $mail-&gt;Host       = "smtpout.europe.secureserver.net"; // SMTP server
  $mail-&gt;SMTPDebug  = 1;                   // enables SMTP debug information (for testing)
                                             // 1 = errors and messages
                                             // 2 = messages only
  $mail-&gt;SMTPAuth   = true;                  // enable SMTP authentication
  $mail-&gt;Host       = "smtpout.europe.secureserver.net"; // sets the SMTP server
  $mail-&gt;Port       = 80;                    // set the SMTP port for the GMAIL server
  $mail-&gt;Username   = "contact@mysite.com"; // SMTP account username
  $mail-&gt;Password   = "thesecredpassword";        // SMTP account password
  
  $mail-&gt;SetFrom('contact@mysite.com"', 'The name');
  
  
  $mail-&gt;Subject    = "Account Confirmation";
  
  $mail-&gt;AltBody    = "To view the message, please use an HTML compatible email viewer!"; // optional, comment out and test
  
  $mail-&gt;MsgHTML($body);
  
  $address = $Username;
  $mail-&gt;AddAddress($address, $Name);
  
  
  if(!$mail-&gt;Send()) 
  {
    /*echo "Mailer Error: " . $mail-&gt;ErrorInfo;*/
    $error = true;
    $MailHasBeenNotSended = true;
  }
  </code></pre>