title: phpmailer tls error,when i try to send mail via tls,error like belowe
body: <p>when i try to send mail by phpmailer,there is some error.
  Like this:</p>
  
  <blockquote>
    <p>SMTP -> FROM SERVER: 250-m1.mydomain.com<br/>
    250-PIPELINING<br/>
    250-SIZE 15728640<br/>
    250-VRFY<br/>
    250-ETRN<br/>
    250-STARTTLS<br/>
    250-ENHANCEDSTATUSCODES<br/>
    250-8BITMIME<br/>
    250 DSN<br/>
    CLIENT -> SMTP: STARTTLS<br/>
    SMTP -> FROM SERVER:220 2.0.0 Ready to start TLS<br/>
    CLIENT -> SMTP: EHLO localhost.localdomain<br/>
    250-PIPELINING<br/>
    250-SIZE 15728640<br/>
    250-VRFY<br/>
    250-ETRN<br/>
    250-AUTH PLAIN<br/>
    250-ENHANCEDSTATUSCODES<br/>
    250-8BITMIME<br/>
    SMTP -> ERROR: AUTH not accepted from server: 535 5.7.8 Error: authentication failed:     Invalid authentication mechanism<br/>
    CLIENT -> SMTP: RSET<br/>
    SMTP -> FROM SERVER:250 2.0.0 Ok<br/>
    CLIENT -> SMTP: MAIL FROM:<br/>
    SMTP -> FROM SERVER:250 2.1.0 Ok<br/>
    CLIENT -> SMTP: RCPT TO:<br/>
    SMTP -> FROM SERVER:554 5.7.1 : Relay access denied<br/>
    SMTP -> ERROR: RCPT not accepted from server: 554 5.7.1 : Relay access denied<br/>
    CLIENT -> SMTP: quit<br/>
    SMTP -> FROM SERVER:221 2.0.0 Bye<br/></p>
  </blockquote>
  
  <p><strong>And my php code like this:</strong></p>
  
  <pre><code>&lt;?php
   require_once('class.phpmailer.php');
   $mail = new PHPMailer();
   $mail-&gt;IsSMTP();
   $mail-&gt;SMTPDebug = 3;
   $mail-&gt;SMTPSecure = "tls";
   $mail-&gt;SMTPAuth = true;
   $mail-&gt;Host = "m1.mydomain.com";
   $mail-&gt;Port = 25;
   $mail-&gt;Username = "service@mydomain.com";
   $mail-&gt;Password = "password";
   $mail-&gt;SetFrom('service@mydomain.com', 'service');
   $mail-&gt;Subject = "Fine Design - Avise me";
   $mail-&gt;Body = "This is very interest email for you";
   $mail-&gt;AddAddress("to@domain.com","name");
   if(!$mail-&gt;Send()) {
       $error = 'Mail error: '.$mail-&gt;ErrorInfo;
       echo "We're sorry, however, an error has occurred. You may manually e-mail us .";
       return false;
   } else {
       echo "Thanks! Your message was successfully sent.";
       return true;
   }
   ?&gt;
  </code></pre>
  
  <p>but i could send mail by foxmail and other client,
  Did anybody could give me some suggestion?</p>