0

我的配置:

Windows 8,最新的 XAMPP 3.2.1,Gmail 帐户。我正在尝试配置 sendmail。

在 php.ini 中:

SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = info@favsync.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
mail.add_x_header=Off
extension=php_openssl.dll (not commented)

在 sendmail.ini 中:

smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=correct_email
auth_password=correct_password
force_sender=correct_email

也试过:

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from correct_email
auth on
user correct_email
password correct_password

port 587

account default : Gmail

在 php_mail_log 我看到这个:

[06-Mar-2014 01:57:10 Europe/Berlin] mail() on [C:\test\test.php:9]:收件人:e1630241@drdrb.com -- 标头:发件人:test@gmail.com回复:test@gmail.com X-Mailer:PHP/5.5.9

所以它看起来确实是发送的,但我没有收到。尝试了不同的电子邮件、gmail、10 分钟邮件、我的 ISP 邮件,没有任何效果。

我正在使用标准的 php 邮件脚本:

<?php
$to      = 'e1630241@drdrb.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: test@gmail.com' . "\r\n" .
    'Reply-To: test@gmail.com' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>

请帮忙,我真的很沮丧,真的浪费了很多时间。就好像他们试图让每一步都变得比应该的更困难..

谢谢

4

0 回答 0