网站搬家之后有一次忘了密码,就用“找回密码”的功能,邮箱并没有收到通知,却再也登陆不了,后来发现是邮件服务器设置的问题。新的服务器需要认证,PHP mail() 命令没找到设密码的地方。网上有人说,PHP mail() 命令不支持认证,看来要大改动了。
抄一段放这里备份。
PHP mail() command does not support authentication. Your options:
1) PHPMailer
Download: http://sourceforge.net/projects/phpmailer
Tutorial: http://phpmailer.codeworxtech.com/index.php?pg=tutorial#2
2) PEAR
Download: http://pear.php.net/package/Mail
Tutorial: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm
3) Custom functions
See various solutions in the notes section: http://php.net/manual/en/ref.mail.php