时间:2021-07-01 10:21:17 帮助过:17人阅读
";
echo "错误原因: " . $mail->ErrorInfo;
exit;
}
echo "邮件发送成功";
?>
用户名和密码没问题,但是提示如下错误信息,不知道哪里有问题,求大家给解决下?
( ! ) Notice: Undefined index: address in D:\wamp\www\PHPMailer\phpmail.php on line 6
Call Stack
# Time Memory Function Location
1 0.0041 373128 {main}( ) ..\phpmail.php:0
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 163.com Anti-spam GT for Coremail System (163com[20121016]) "
SMTP -> get_lines(): $data is "220 163.com Anti-spam GT for Coremail System (163com[20121016]) "
SMTP -> FROM SERVER:220 163.com Anti-spam GT for Coremail System (163com[20121016])
SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-mail "
SMTP -> get_lines(): $data is "250-mail "
SMTP -> get_lines(): $data was "250-mail "
SMTP -> get_lines(): $str is "250-PIPELINING "
SMTP -> get_lines(): $data is "250-mail 250-PIPELINING "
SMTP -> get_lines(): $data was "250-mail 250-PIPELINING "
SMTP -> get_lines(): $str is "250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data is "250-mail 250-PIPELINING 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $data was "250-mail 250-PIPELINING 250-AUTH LOGIN PLAIN "
SMTP -> get_lines(): $str is "250-AUTH=LOGIN PLAIN "
SMTP -> get_lines(): $data is "250-mail 250-PIPELINING 250-AUTH LOGIN PLAIN 250-AUTH=LOGIN PLAIN "