我正在尝试通过 PHP 发送电子邮件。它给出以下警告。
Warning: mail() [function.mail]: Failed to connect to mailserver at
"smtp.ntlworld.com" port 25, verify your "SMTP" and "smtp_port" setting in
php.ini or use ini_set() in C:\wamp\www\wagafashion\customerside\BulkInquiry.php
on line 1007
在 php.ini 中,SMTP已更改如下。
[mail function]
; For Win32 only.
SMTP = smtp.ntlworld.com
smtp_port = 25
; For Win32 only.
sendmail_from = tiny1999@gmail.com
配置 php.ini 后,WAMP 重新启动并给出了上述警告。在 PHP 中通过 localhost 发送电子邮件需要进行哪些其他设置?