XAMPP sendmail显示在日志中发送,但无法在任何地方接收

时间:2014-03-06 01:12:07

标签: email xampp sendmail.exe

我的配置:

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);
?>

请帮助,我真的很沮丧,真的浪费了很多时间。这就像他们试图让每一步都变得更加艰难。

由于

0 个答案:

没有答案
相关问题