【问题标题】:php mail() function doesn't return anything [duplicate]php mail()函数不返回任何内容[重复]
【发布时间】:2016-09-16 15:55:39
【问题描述】:

我想用 php 代码中的 php mail() 函数发送邮件,这个函数返回 true,但我没有收到我发送的任何消息,是不是我的 hMailServer 在数据文件夹中出现了问题,它显示了像邮件一样的数据已发送,但我什么也没收到

【问题讨论】:

    标签: php email


    【解决方案1】:

    您需要一个 SMTP 服务器来发送邮件。 这篇文章可能会对你有所帮助。 PHP mail() function returns true, but doesn't send mail

    【讨论】:

    • 我有 hMailServer,我在 php.ini 中设置了 SMTP=localhost 和 port=25,是不是 hMailServer 的配置有问题,因为我创建了 doman 并在 =localhost 上设置了 localhost 名称
    猜你喜欢
    • 2016-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-13
    • 2013-08-18
    • 2018-08-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多