0

我整天都在拼命地尝试从 gmail 帐户的 xampp 上运行的 php 文件发送电子邮件。

我想使用 Gmails SMTP,因为我一直在尝试让 Mercury 工作,但这是非常有问题的。到目前为止,我将其设置如下:

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=25
smtp_ssl=auto
auth_username=justinharr6@gmail.com
auth_password=*password*
force_sender=justinharr@gmail.com

[mail function]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
mail.add_x_header = Off
(everything else commented out)

Keep in mind this is one of many configurations I have tried none of which work. My php files is returning true from the Mail call but its never getting to the destination. Any help would be greatly appreciated.

4

1 回答 1

1

我假设您正在尝试通过本地主机发送邮件

我建议你应该使用PHP 邮件类

于 2013-11-22T06:18:43.063 回答