使用PHPMailer以后需要更改php.ini文件吗
我看网上的教程,直接用就可以发送邮件了,不用改什么IIS或者是PHP.ini文件的。但是我这里会报错:
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() in C:\inetpub\wwwroot\test\conn\pwdEmail.php on line 43 Mail Sent.SMTP -> ERROR: Failed to connect to server: (0)
SMTP Error: Could not connect to SMTP host. 邮件发送出错:SMTP Error: Could not connect to SMTP host.
求指导
------解决方案--------------------很奇怪,你是怎么用的?怎么会用到 mail() 函数?
贴出你的代码