Home > Backend Development > PHP Tutorial > 施用PHPMailer以后需要更改php.ini文件吗

施用PHPMailer以后需要更改php.ini文件吗

WBOY
Release: 2016-06-13 11:24:02
Original
815 people have browsed it

使用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.
求指导

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template