Skip to content

Gmail 发送邮件凭据#

¥Gmail Send Email credentials

请按照以下步骤使用 Gmail 账户配置“发送电子邮件”凭据。

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

先决条件#

¥Prerequisites

要遵循这些说明,你必须首先:

¥To follow these instructions, you must first:

  1. 启用两步验证 在你的 Gmail 账户上运行。

¥Enable 2-step Verification on your Gmail account. 2. 生成应用密码

¥Generate an app password.

启用两步验证#

¥Enable 2-step Verification

To enable 2-step Verification:

  1. Log in to your Google Account.
  2. Select Security from the left navigation.
  3. Under How you sign in to Google, select 2-Step Verification.
    • If 2-Step Verification is already enabled, skip to the next section.
  4. Select Get started.
  5. Follow the on-screen steps to configure 2-Step Verification.

Refer to Turn on 2-step Verification for more information.

If you can't turn on 2-step Verification, check with your email administrator.

生成应用密码#

¥Generate an app password

To generate an app password:

  1. In your Google account, go to App passwords.
  2. Enter an App name for your new app password, like n8n credential.
  3. Select Create.
  4. Copy the generated app password. You'll use this in your n8n credential.

Refer to Google's Sign in with app passwords documentation for more information.

设置凭据#

¥Set up the credential

要设置使用 Gmail 发送电子邮件的凭据:

¥To set up the Send Email credential to use Gmail:

  1. 请输入你的 Gmail 电子邮件地址作为用户名。

¥Enter your Gmail email address as the User. 2. 将你上面生成的应用密码输入为“密码”。

¥Enter the app password you generated above as the Password. 3. 将主机名输入为 smtp.gmail.com

¥Enter smtp.gmail.com as the Host. 4. 对于端口:

¥For the Port:

  • 对于 SSL 连接或不确定使用哪个端口,请保留默认端口 465

    ¥Keep the default 465 for SSL or if you're unsure what to use.

  • 输入 587 以启用 TLS。

    ¥Enter 587 for TLS. 5. 启用 SSL/TLS 开关。

¥Turn on the SSL/TLS toggle.

请参阅 使用 POP 协议在其他邮件客户端上读取 Gmail 邮件 中的“外发邮件 (SMTP) 服务器”设置以获取更多信息。如果上述设置对你无效,请咨询你的电子邮件管理员。

¥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.