Warning: mail(): Failed to Receive in

£可爱£侵袭症+ 提交于 2019-12-11 03:06:52

问题


I am trying to use the php mail function on my windows server over ii7 and i am having this warming which doesn't allow me to send mails.

Warning: mail(): Failed to Receive in xxx 

That line contains this:

mail("mail@myserver.com", "subject", 'body',"From: mail2@myserver.com")

At php.ini i have configured SMTP server, port and sendmail_from like this:

; http://php.net/smtp
SMTP = 128.x.x.xxx
; http://php.net/smtp-port
smtp_port = 110

; For Win32 only.
; http://php.net/sendmail-from
sendmail_from = mymail@myserver.com

phpinfo() safe_mode is Off.

What can be the problem? Thanks.


回答1:


110 is a POP3 port, not SMTP. Try smtp_port = 25 instead.



来源:https://stackoverflow.com/questions/12461692/warning-mail-failed-to-receive-in

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