Skip to content

Gmail Send Email credentials#

Follow these steps to configure the Send Email credentials with a Gmail account.

Prerequisites#

To follow these instructions, you must first:

  1. Enable 2-step Verification on your Gmail account.
  2. Generate an app password.

Enable 2-step Verification#

要启用两步验证:

  1. 登录到您的 Google 账户
  2. 从左侧导航中选择安全
  3. 您登录 Google 的方式下,选择两步验证
    • 如果两步验证已启用,请跳到下一部分。
  4. 选择开始使用
  5. 按照屏幕上的步骤配置两步验证。

有关更多信息,请参阅启用两步验证

如果您无法启用两步验证,请咨询您的邮箱管理员。

Generate an app password#

要生成应用密码:

  1. 在您的 Google 账户中,转到应用密码
  2. 为您的新应用密码输入应用名称,如 n8n 凭据
  3. 选择创建
  4. 复制生成的应用密码。您将在 n8n 凭据中使用此密码。

有关更多信息,请参阅 Google 的使用应用密码登录文档

Set up the credential#

To set up the Send Email credential to use Gmail:

  1. Enter your Gmail email address as the User.
  2. Enter the app password you generated above as the Password.
  3. Enter smtp.gmail.com as the Host.
  4. For the Port:
    • Keep the default 465 for SSL or if you're unsure what to use.
    • Enter 587 for TLS.
  5. Turn on the SSL/TLS toggle.

Refer to the Outgoing Mail (SMTP) Server settings in Read Gmail messages on other email clients using POP for more information. If the settings above don't work for you, check with your email administrator.