本帖最后由 ooopppx 于 2014-5-15 11:39 编辑
win2008SR2IIS7.5
PHP5.3
AWS(已开端口25、465)
下面是配置
php.ini [mail function]
SMTP = smtp.ym.163.com
smtp_port = 25
sendmail_from =
sendmail_path = "D:\sendmail\sendmail.exe -t" sendmail.ini [sendmail] smtp_server=smtp.ym.163.com
smtp_port=25
smtp_ssl=auto
error_logfile=error.log
debug_logfile=debug.log
auth_username=
auth_password=
test.php <?php
$mail = “[email protected]”;
$subject = “Mail Test”;
$text = “This is a test mail for function mail()”; if(mail($mail,$subject,$text)){
echo “email send success!”;
}else{
echo “email send fail!”;
}
?>
现在的问题是测试返回suceess!但邮件死活收不到,且sendmail根目录下未生成error和debug日志
|