关于php邮件配置不确定

时间:2018-05-14 09:35:53

标签: php email

我正在阅读php mail()函数文档,但我错过了一些配置字段,例如userpasssword

我知道smtp服务器设置在php.ini上,但我没有看到任何设置userpassword的内容。

如何将要将电子邮件发送给发件人的用户设置为发件人?

1 个答案:

答案 0 :(得分:0)

如果您只需要设置用户并通过,此脚本将为您提供帮助。它的工作正常

SMTP = smtp.example.com
smtp_port = 25
username = info@example.com
password = yourmailpassord
sendmail_from = info@example.com