求助winIIS7.5下PHP客户端发送email的的配置问题
本帖最后由 ooopppx 于 2014-5-15 11:39 编辑win2008SR2IIS7.5
PHP5.3
AWS(已开端口25、465)
下面是配置
php.ini
SMTP = smtp.ym.163.com
smtp_port = 25
sendmail_from =
sendmail_path = "D:\sendmail\sendmail.exe -t"sendmail.inismtp_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日志
sendmail 配置不正确
先把sendmail 配置好了,然后看log
页:
[1]