Windows+sendmail邮箱配置方法

通过清心醉

Windows+sendmail邮箱配置方法

网站注册后系统会自动发送一封注册信息的电子邮件到注册人的信箱里,在Linux平台里可以使用sendmail的函数方法直接调用,sendmail是Linux平台的软件。那么在Windows下使用sendmail又该如何?(在此佩服程序员的强大,Linux的sendmail硬搬到Windows)

第一,首先要修改修改 x:\xampp\sendmail\sendmail.ini 文件的以下内容

smtp_server=mail.vhost.tw
auth_username=sendmail@vhost.tw
auth_password=xxxxxx

第二,修改 x:\xampp\apache\bin\php.ini 文件的以下内容

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

; For Win32 only.
;sendmail_from =

; For Unix only. You may supply arguments as well (default: “sendmail -t -i”).
sendmail_path = “E:\xampp\sendmail\sendmail.exe -t”

第三, 重启 Apache

这样,Windows下使用sendmail配置就完成了!
sendmail下载地址: http://url.cn/MtlTAw

关于作者

清心醉 administrator

发表评论

如果喜欢作者的文章,您可以打赏给作者:

TRC20(虚拟货币):


ERC20(虚拟货币):


Bitcoin(BTC):