错误在服务器域中使用phpmailer发送电子邮件,但在localhost中成功 [英] error send email with phpmailer in server domain but succed in localhost
问题描述
我对此问题有详细的错误,
i have detail error with this problem,
SMTP->来自服务器:220-server.modulindo.com ESMTP例4.77#2,星期三,2012年7月11日10:57:22 +0700 220-我们未授权使用此系统来传输未经请求的220和/或批量电子邮件. SMTP->从服务器:250-server.modulindo.com您好mail.modulindo.com [202.67.9.42] 250-SIZE 52428800 250-管道250-AUTH PLAIN登录250帮助 SMTP->错误:服务器不接受密码:535错误的身份验证数据 SMTP->从服务器:250重设确定
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
请帮助我!!
我对phpmailer有问题.我在localhost中使用phpmailer发送电子邮件成功,但是当我在服务器域中上载电子邮件时,发生了错误.错误是..
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错误:无法验证.邮件错误:SMTP错误:无法验证.
这是我的脚本.
....
$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";
...
推荐答案
我用注释(或取消)此行解决了同样的问题
i solved same problem with comment (or cancel) this line
//$ mail-> IsSMTP();
// $mail->IsSMTP();
这是因为从某台服务器我遇到了相同的错误:SMTP错误:无法进行身份验证(密码也不正确...等)
this because from some server i had same error: SMTP Error: Could not authenticate (also Password is incorrect...etc)
这篇关于错误在服务器域中使用phpmailer发送电子邮件,但在localhost中成功的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!