简体   繁体   English

无法连接到“localhost”端口25上的邮件服务器

[英]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.

相关问题 无法通过“localhost”端口 25 连接到邮件服务器 - Failed to connect to mailserver at "localhost" port 25 mail():无法通过“ localhost”端口25连接到邮件服务器,无法在php.ini中验证“ SMTP”和“ smtp_port”设置,或使用ini_set() - mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set() PHP无法通过mail.OURDOMAIN.com端口25连接到mailserver…但是,我可以通过telnet测试邮件 - PHP Failed to connect to mailserver at mail.OURDOMAIN.com port 25 … However, I can telnet test mail through mail() : 无法连接到邮件服务器 - mail() : Failed to connect to mailserver SMTP mail():无法连接到邮件服务器 - SMTP mail(): Failed to connect to mailserver 回复邮件时无法连接到SMTP主机:localhost,端口:25- - Could not connect to SMTP host: localhost, port: 25 - while REPLYing to mail Errno::ECONNREFUSED - 连接被拒绝 - “localhost”端口 25 的 connect(2): - Errno::ECONNREFUSED - Connection refused - connect(2) for “localhost” port 25: 使用SMTP时“无法连接到邮件服务器” - “Failed to connect to mailserver” when using SMTP Wildfly 9.1 smtp邮件子系统-无法连接到主机,端口:localhost,25; 超时-1; - Wildfly 9.1 smtp mail substem - Couldn't connect to host, port: localhost, 25; timeout -1; Java Mail异常。 无法连接到SMTP主机:localhost,端口:25; - Java Mail Exception. Could not connect to SMTP host: localhost, port: 25;
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM