2014-11-15 00:29:53
来 源
中存储网
sendmail
在Windows平台上配置PHP通过sendmail使用mail函数的方法:在php.ini中配置相应的sendmail路径。[mail function]; For Win32 only.SMTP = smtp.163.comsmtp_port = 25。

在Windows平台上配置PHP通过sendmail使用mail函数的方法

首先,在php.ini中配置相应的sendmail路径。

[mail function]
; For Win32 only.
SMTP = smtp.chinastor.com
smtp_port = 25
; For Win32 only.
sendmail_from = aa@chinastor.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
sendmail_path ="D:/SendMail/sendmail.exe -t -i"

这样配置后就可以直接使用PHP自带的mail()函数来发送邮件了。

声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。