【问题标题】:Unable to send an email using PHPmailer in Drupal 7无法在 Drupal 7 中使用 PHPmailer 发送电子邮件
【发布时间】:2020-01-23 06:28:10
【问题描述】:

我的网站https://www.smcin.com/ 在drupal 7 中创建并托管在谷歌云控制台中。我正在使用 PHPmailer smtp 模块使用端口 25 通过网站发送电子邮件。但未触发邮件并给出错误

"测试邮件没有发送到 xxxxxxxx@yahoo.com。你应该检查 错误消息的日志。”

在日志中仅显示此消息:

MESSAGE:    Error sending e-mail (from xxxxxxxx@xxxxxxx.xxx to xxxxxxxx@yahoo.com).
SEVERITY:   error.

我还尝试了其他端口(80、465、2525)和服务器(gmail,我的官方网络邮件),但没有任何效果。 我浪费了很多时间,但没有找到解决方案。

【问题讨论】:

  • 它看起来不像是一个drupal问题,但是如果它允许您发送邮件,您必须检查网络托管配置,您是否尝试过使用mail()函数进行简单测试?

标签: smtp drupal-7 google-cloud-console


【解决方案1】:

您的问题不清楚您使用的是哪种 Google Cloud Platform 服务。

假设您使用的是 Compute Engine,请参阅 Sending email from an instance

NB“25 端口始终被阻塞,无法使用”

您应该能够将其配置为使用例如465.

在展示实例 IP 地址的良好声誉方面,您可能会继续面临挑战。

【讨论】:

    猜你喜欢
    • 2015-09-06
    • 2020-11-25
    • 2019-01-19
    • 2023-03-20
    • 2017-07-19
    • 2017-10-05
    • 1970-01-01
    • 2013-12-01
    • 1970-01-01
    相关资源
    最近更新 更多