[英]Failed to connect to mailserver at “localhost” port 25
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. 我使用64位Win7,但我不知道我应该设置什么才能使这项工作。
In your php.ini file you can configure which mailserver to use: 在php.ini文件中,您可以配置要使用的邮件服务器:
[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 或者,您可以按照此处所述安装本地邮件服务器: http : //www.php.net/manual/en/ref.mail.php#77499
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.