[英]mail() : Failed to connect to mailserver
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
由于我已经安装了 SMTP 服务器,但我的 gmail 帐户中仍然没有收到电子邮件,而是在 microsoft Outlook 上收到了邮件,但为什么我的 gmail 帐户中没有出现电子邮件
There could be couple of issues:可能有几个问题:
It sounds like your SMTP server is not allowing relay .听起来您的SMTP 服务器不允许中继。 Talk to your mail server admin and ask if they will open relay for your application's IP address.
与您的邮件服务器管理员交谈,询问他们是否会为您的应用程序的 IP 地址打开中继。
Try to use a valid 'from' email address in mail function尝试在邮件功能中使用有效的“发件人”电子邮件地址
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.