不在XAMPP中使用Sendmail和Gmail发送邮件

时间:2018-02-19 05:45:15

标签: email xampp smtp gmail sendmail

我正在将XAMPP用于工作项目。几个月前,我可以使用我们的Gmail帐户(带有合法域名)使用Sendmail配置邮件发件人并且工作得非常好;然而,几周前邮件发件人没有工作,说实话,我不知道如果不做任何改变会发生什么。

这就是我所拥有的:

的php.ini:

[mail function]
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = mycorporative-id@gmail.com
sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
;mail.force_extra_parameters =
mail.add_x_header=On
;mail.log =
;mail.log = syslog

sendmail.ini:

[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
smtp_ssl=auto
;default_domain=mydomain.com
error_logfile=error.log
debug_logfile=debug.log
auth_username=mycorporative-id@gmail.com
auth_password=**********
pop3_server=
pop3_username=
pop3_password=
force_sender=mycorporative-id@gmail.com
force_recipient=
hostname=

在Apache日志错误文件中,我有这样的错误:

[Mon Feb 19 00:02:51.017896 2018] [:error] [pid 4144:tid 1776] [client x.x.x.x:56714] ERROR: mail not sent to  (usermail@anythinghere.com) because of Language string failed to load: tls<p>SMTP server error: K\x0c, referer: .../main/auth/lostPassword.php
[Mon Feb 19 00:02:51.017896 2018] [:error] [pid 4144:tid 1776] [client x.x.x.x:56714] Connection details :: Protocol: smtp :: Host/Port: smtp.gmail.com:587 :: Authent/Open: Authent ::   User/Pass: mycorporative-id@gmail.com:********, referer: .../main/auth/lostPassword.php

你知道这里发生了什么吗?就像我说的那样,我什么都不做改变;如果您需要更多信息,请问我。感谢您的关注和帮助。

0 个答案:

没有答案