【问题标题】:config gmail as a local mail client将 gmail 配置为本地邮件客户端
【发布时间】:2011-09-23 01:08:41
【问题描述】:

我将 gmail 配置为本地 SMTP 邮件客户端。我使用主机作为 smtp.gmail.com,我的 gmail 地址作为用户名和密码,587 作为端口。但我没有看到任何电子邮件发送。我还在 php.ini 中取消了以下行的注释

 [mail function] For Win32 only.
 http://php.net/smtp SMTP = localhost
 http://php.net/smtp-port smtp_port =
 587

 ; For Win32 only.
 http://php.net/sendmail-from
 sendmail_from = myemail@gmail.com

请问我错过了什么?我正在使用 windows7 x64。我注意到 php.ini 仅适用于 Windows 32? windows x64还有其他设置吗?

谢谢。

【问题讨论】:

    标签: php smtp gmail


    【解决方案1】:

    这里有完整的教程,解释了如何实现这一点

    http://digiex.net/guides-reviews/guides-tutorials/application-guides/544-configuring-php-under-windows-use-gmail-external-smtp-server-ssl.html

    还有一个很棒的类,我推荐用于发送电子邮件 PHPMailertutorial here

    【讨论】:

      猜你喜欢
      • 2014-03-04
      • 2023-03-08
      • 2014-05-25
      • 1970-01-01
      • 1970-01-01
      • 2019-05-19
      • 2015-10-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多