2012-02-03 77 views
0

为什么会出现此错误? 我没有用过电子邮件()函数的程序 this is the screen shot of the error report i am getting如何解决“无法连接到邮件服务器在”本地主机“端口25”

其在这一行给了一个错误

mysqli_close($dbc); 

this is the screen shot of the program, i have Not called mail() function

+4

这没有意义。您必须查看错误的文件。 – alexn 2012-02-03 12:14:19

+0

不,我看过正确的PHP文件不是在错误的文件,我应该上传整个源代码? – lucifer 2012-02-03 12:19:50

+0

该行几乎肯定不会产生错误,但是......您是否已*在您的计算机上运行邮件服务器? – geoffspear 2012-02-03 12:20:47

回答

0

yes..alexn是right.you正在寻找错误文件。

有关设置邮件连接:

你必须激活邮件功能在你的php.ini。

您不必使用MTA(邮件传输代理),这是总的多头..

只是解决您的php.ini文件是这样的:

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

; For Win32 only. 
sendmail_from = [email protected] 

希望它会帮助你。

相关问题