无法在Drupal 7中使用PHPmailer发送电子邮件

问题描述 投票:0回答:1

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

“测试电子邮件尚未发送到[email protected]。您应该检查错误消息的日志。“

在日志上仅显示此消息:

MESSAGE:    Error sending e-mail (from [email protected] to [email protected]).
SEVERITY:   error.

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

smtp drupal-7 google-cloud-console
1个回答
0
投票

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

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

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

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

在为实例的IP地址显示良好声誉方面,您可能还会遇到挑战。

© www.soinside.com 2019 - 2024. All rights reserved.