0

i have detail error with this problem,

SMTP -> FROM SERVER:220-server.modulindo.com ESMTP Exim 4.77 #2 Wed, 11 Jul 2012 10:57:22 +0700 220-We do not authorize the use of this system to transport unsolicited, 220 and/or bulk e-mail. SMTP -> FROM SERVER: 250-server.modulindo.com Hello mail.modulindo.com [202.67.9.42] 250-SIZE 52428800 250-PIPELINING 250-AUTH PLAIN LOGIN 250 HELP SMTP -> ERROR: Password not accepted from server: 535 Incorrect authentication data SMTP -> FROM SERVER:250 Reset OK

please help me guys!?

i have a problem with phpmailer. i send email with phpmailer in localhost is succeed, but when i upload it in my server domain, there was an error happend. the error is..

SMTP Error: Could not authenticate. Mailer Error: SMTP Error: Could not authenticate.

this is my script..

....
$mail = new PHPMailer();

$mail->IsSMTP();

$mail->Mailer = "smtp";

$mail->Host = "ssl://smtp.gmail.com";

$mail->Port = 465;

$mail->SMTPAuth = true;

$mail->Username = "wasis85@gmail.com";

$mail->Password = "password"; 

$mail->From     = "wasis85@gmail.com";

$mail->FromName = "Wasis Lukito";

$mail->AddAddress($ema[$ari_no],"wasis");

$mail->AddCC("wasisl85@yahoo.com");

$mail->AddReplyTo("wasisl85@yahoo.com","Wasis Lukito");

$mail->WordWrap = 50;

$mail->IsHTML(true);

$mail->Subject  =  "Penolakan Data BPLPSE";

$mail->Body     =  "Alasan di tolak ";

$mail->AltBody  =  "This research is supported by Google.com";

...
4

2 回答 2

4

我用评论(或取消)这一行解决了同样的问题

// $mail->IsSMTP();

这是因为从某些服务器我有同样的错误: SMTP 错误:无法验证(密码也不正确......等等)

于 2012-09-13T16:12:20.857 回答
0

剧本似乎还不错。我相信您必须检查并确保您的服务器是否支持 SMTP,或者是否已为 SMTP 正确配置。

于 2012-07-10T09:45:47.737 回答