【发布时间】:2016-04-14 21:50:48
【问题描述】:
我有 Windows 2012 服务器。我已经安装了电子邮件服务器(hMailServer),该服务器已配置并正确发送/接收电子邮件。
但是当我想从 php 发送邮件时,(我必须使用 mail() 函数),什么都没有发生。
在 php.ini 中我设置:
[mail function]
; XAMPP: Comment out this if you want to work with an SMTP Server like Mercury
SMTP = 127.0.0.1
smtp_port = 25
知道哪里有问题吗?谢谢
编辑: 我试过了
auth_username = smtp-username
auth_password = smtp-password
sendmail_from = you@yourserver.com
使用不同的 smtp 服务器并总是收到此错误:
Warning: mail(): SMTP server response: 530 SMTP authentication is required.
【问题讨论】: