Failed to connect to mailserver at “localhost” port 25

风格不统一 提交于 2019-12-23 17:35:52

问题


I have a little problem.

When I click send on my contact form I get the following warning:

Warning: mail() [function.mail]:
Failed to connect to mailserver at "localhost" port 25,
verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()

I use 64bit Win7, but I have no idea what should I set up to make this work.


回答1:


In your php.ini file you can configure which mailserver to use:

[mail function]
SMTP = mymailserver.example.com

Alternatively you can install a local mailserver as described here: http://www.php.net/manual/en/ref.mail.php#77499



来源:https://stackoverflow.com/questions/3075586/failed-to-connect-to-mailserver-at-localhost-port-25

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!