mail() : Failed to connect to mailserver

时间:2015-09-01 21:47:44

标签: php smtp

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() in C:\wamp\www\dressoholic\register.php on line 50

As i already installed a SMTP server but still I donot get emails in my gmail account instead i got mails on microsoft outlook but why emails donot appearing on my gmail account

1 个答案:

答案 0 :(得分:0)

可能有几个问题:

  1. 听起来像是你SMTP server is not allowing relay。与您的邮件服务器管理员联系,询问他们是否会为您的应用程序的IP地址打开中继。

  2. 尝试在邮件功能中使用有效的“发件人”电子邮件地址