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