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:
启用两步验证(Enable 2-step Verification)#
To enable 2-step Verification:
- Log in to your Google Account.
- Select Security from the left navigation.
- Under How you sign in to Google, select 2-Step Verification.
- If 2-Step Verification is already enabled, skip to the next section.
- Select Get started.
- 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:
- In your Google account, go to App passwords.
- Enter an App name for your new app password, like
n8n credential. - Select Create.
- 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:
- 在 用户 一栏输入你的 Gmail 邮箱地址。
- 将你在上面生成的应用密码输入为 密码。
- 在 主机 中输入
smtp.gmail.com。 - 对于端口:
- 对于 SSL,请保持默认的
465,或者如果你不确定使用什么,请保持默认。 - 输入
587以使用 TLS。
- 对于 SSL,请保持默认的
- 打开 SSL/TLS 开关。
有关更多信息,请参阅 [在其他电子邮件客户端使用 POP 阅读 Gmail 邮件] (https://support.google.com/mail/answer/7104828?hl=en) 中的外发邮件 (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.