【发布时间】: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