PHP wamp,邮件服务器一切正常后无法正常工作

时间:2015-10-20 04:57:28

标签: php smtp

我的sendmail配置

s = raw_input("Please enter a list of numbers separated by commas:")
print(len([i for i in s.strip().split(',') if int(i) >= 0]))

php.ini config

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=auto
default_domain=localhost
error_logfile=error.log
;debug_logfile=debug.log
auth_username=www.nik357@gmail.com
auth_password=************
pop3_server=
pop3_username=
pop3_password=
force_sender=www.nik357@gmail.com
force_recipient=
hostname=localhost

我已经设置了sendmail.exe属性,如下所示, 1. sendmail属性 2.兼容性 3.兼容模式 - > Windows服务包3 4.以管理员身份运行程序。 我的php脚本是

SMTP =
smtp_port = 587
sendmail_path = "‪C:\wamp\sendmail\sendmail.exe -t"
sendmail_from = www.nik357@gmail.com

但仍然无法正常工作。我已经在stackoverflow上查找了有关这方面的所有主题,但没有使用其中任何一个,请任何解决方案。

它正在我的网页上显示以下按摩

警告:mail():无法连接到“localhost”端口25的邮件服务器,验证php.ini中的“SMTP”和“smtp_port”设置,或者在C:\ wamp \ www \ Titan_store \中使用ini_set()第14行的mail.php

0 个答案:

没有答案
相关问题