want to send mails from php using yahoo smtp
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3512021/sending-mails-in-php-using-yahoo-smtp">sending mails in php using yahoo smtp</a>  </p>
</blockquote>



<p>require("class.phpmailer.php"); $mail = new PHPMailer();</p>

<p>$mail->IsSMTP();</p>

<p>$mail->SMTPAuth = true; // enable SMTP authentication</p>

<p>$mail->SMTPSecure = "ssl";</p>

<p>$mail->Host = "plus.smtp.mail.yahoo.com";</p>

<p>$mail->Port = 465; // set the SMTP port</p>

<p>$mail->Username = "sumthing@yahoo.com";</p>

<p>$mail->Password = "password";</p>

<p>$mail->From = "sumthing@yahoo.com";</p>

<p>$mail->FromName = "myname";</p>

<p>$mail->AddAddress("you@example.com");</p>

<p>$mail->Subject = "Test PHPMailer Message";</p>

<p>$mail->Body = "Hi! \n\n This was sent with phpMailer_example3.php.";</p>

<p>if(!$mail->Send()) {</p>

<p>echo 'Message was not sent.';</p>

<p>echo 'Mailer error: ' . $mail->ErrorInfo;</p>

<p>} else {</p>

<p>echo 'Message has been sent.';</p>

<p>} ?></p>

<p>After the run it is showing:</p>

<p>SMTP Error: Could not authenticate. Message was not sent.Mailer error: SMTP Error: Could not authenticate. SMTP server error:</p>

<p>were is the error??</p>
