简体   繁体   English

如何解决“无法通过“ localhost”端口25连接到邮件服务器”

[英]how to solve the “Failed to connect to mailserver at ”localhost“ port 25”

why does this error come? 为什么会出现此错误? i have not used the email() function in the program 我没有在程序中使用email()函数 这是我收到的错误报告的屏幕截图

its giving an error on this line 它在这条线上给出了错误

mysqli_close($dbc);

这是程序的屏幕截图,我没有调用mail()函数

yes..alexn is right.you are looking at wrong file. 是的..alexn是正确的。您正在寻找错误的文件。

For setup mail connection: 对于设置邮件连接:

You have to activate mail function in your php.ini. 您必须在php.ini中激活邮件功能。

You don't have to use a MTA(mail transport agent) that's total bull.. 您不必使用总的来说就是MTA(邮件传输代理)。

Just fix your php.ini file like this: 只需像这样修复您的php.ini文件:

[mail function]
; For Win32 only.
SMTP = mysmtpserver.com
smtp_port = 25

; For Win32 only.
sendmail_from = email@myemail.com

hope it will help you. 希望对您有帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法通过“localhost”端口 25 连接到邮件服务器 - Failed to connect to mailserver at "localhost" port 25 无法连接到“localhost”端口25上的邮件服务器 - Failed to connect to mailserver at “localhost” port 25 无论如何绕过错误:无法在“ localhost”端口25上连接到邮件服务器 - Anyway to bypass the error: Failed to connect to mailserver at “localhost” port 25 无法连接到“localhost”端口25上的邮件服务器,验证您的“SMTP” - Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” 我更改了SMTP和SMTP端口,但它仍然说无法连接到“localhost”端口25的邮件服务器 - I changed the SMTP and SMTP Port but it still says Failed to connect to mailserver at “localhost” port 25 警告:mail()[function.mail]:无法通过“ localhost”端口25连接到邮件服务器 - Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25 mail():无法在“localhost”端口 25 连接到邮件服务器,请验证 php.ini 中的“SMTP”和“smtp_port”设置 - mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini 警告:mail()[function.mail]:无法连接到“localhost”端口25的邮件服务器,验证你的“SMTP”和“smtp_port”,XAMPP for WIndows XP - Warning: mail() [function.mail]: Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port”, XAMPP for WIndows XP 无法连接到本地主机的邮件服务器 - failed to connect to mailserver at localhost 警告:mail():无法连接到“localhost”端口25上的邮件服务器,验证php.ini中的“SMTP”和“smtp_port”设置或使用ini_set() - Warning: mail(): Failed to connect to mailserver at “localhost” port 25, verify your “SMTP” and “smtp_port” setting in php.ini or use ini_set()
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM