如何在 WP Mail SMTP 中设置 Gmail 邮件程序

How to Set Up the Gmail Mailer in WP Mail SMTP

从我的博客上的用户那里得到了现实生活中的反馈,他们不能再发送电子邮件了,尽管这是有效的。

我将 WP Mail SMTP 与 Gmail 一起使用,这是之前配置的。

进入管理面板后,在 WP Mail SMTP > 电子邮件测试下:

You cannot send an email. Mailer is not properly configured. Please check your settings.

如何解决这个问题?

This link 包含我们需要了解的有关此配置的所有信息。

为了解决这个问题,我只执行了接下来的两个步骤

  1. Create a Web App in Your Google Account
  2. Grant Permissions and Send Test Email

棘手的部分是在第 2 步的某个地方,我们将在其中获得 Google 的登录屏幕。登录后,我得到一个不安全的页面

必须点击高级

然后单击 转到 tiagoperes.eu 不安全

然后才能看到一个屏幕,要求允许该站点代表我发送电子邮件。

然后,在 WP Mail SMTP > 电子邮件测试下:

点击后收到邮件,问题解决