Message could not be sent.
Mailer Error: The following From address failed: k571031767@163.com :
MAIL FROM command failed,
MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,
please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
,554,SMTP server error: MAIL FROM command failed Detail: MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
SMTP code: 554SMTP server error: MAIL FROM command failed Detail: MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
Mailer Error: The following From address failed: k571031767@163.com :
MAIL FROM command failed,
MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,
please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
,554,SMTP server error: MAIL FROM command failed Detail: MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
SMTP code: 554SMTP server error: MAIL FROM command failed Detail: MI:SPB UserReject 0,smtp9,DcCowAD3ZidYsKBaxmVEHQ--.18752S2 1520480344,please feedback at http://feedback.mail.126.com/antispam/complain.php?user=xxxxxx@163.com
SMTP code: 5542
网易邮箱做开发测试的时候,会出现上述错误!
这是因为网易的反垃圾检测到您的邮箱再滥发信息或者其他!
你需要去反馈一下
地址:http://feedback.mail.126.com/antispam/complain.php?user='xxxxxxx'@163.com 【xxxx改为您的用户名】
大约10分钟后就可以了!
代码一般不会出错
我的发送代码如下
$mail = new PHPMailer(); $mail->isSMTP();// 使用SMTP服务 $mail->CharSet = "utf8";// 编码格式为utf8,不设置编码的话,中文会出现乱码 $mail->Host = "smtp.163.com";// 发送方的SMTP服务器地址 $mail->SMTPAuth = true;// 是否使用身份验证 $mail->Username = "kxxxxxx@163.com";// 发送方的163邮箱用户名 $mail->Password = "xxxxxxxxx";// 发送方的邮箱密码,注意用163邮箱这里填写的是“客户端授权密码”而不是邮箱的登录密码! $mail->SMTPSecure = "ssl";// 使用ssl协议方式 $mail->Port = 465;// 163邮箱的ssl协议方式端口号是465/994 $mail->From= "xxxx"; $mail->Helo= "xxxx"; $mail->setFrom("xxxxxxxxx7@163.com","超心动网");// 设置发件人信息,如邮件格式说明中的发件人,这里会显示为Mailer(xxxx@163.com),Mailer是当做名字显示 $mail->addAddress('571031767@qq.com','Liang');// 设置收件人信息,如邮件格式说明中的收件人,这里会显示为Liang(yyyy@163.com) $mail->IsHTML(true); $mail->Subject = '关闭反垃圾邮箱';// 邮件标题 $mail->Body = '有奖征文';// 邮件正文 if(!$mail->send()){// 发送邮件 echo "Message could not be sent."; echo "Mailer Error: ".$mail->ErrorInfo;// 输出错误信息 }else{ echo 'Message has been sent.'; }