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:
- Enable 2-step Verification on your Gmail account.
- Generate an app password.
Enable 2-step Verification#
要启用两步验证:
- 登录到您的 Google 账户。
- 从左侧导航中选择安全。
- 在您登录 Google 的方式下,选择两步验证。
- 如果两步验证已启用,请跳到下一部分。
- 选择开始使用。
- 按照屏幕上的步骤配置两步验证。
有关更多信息,请参阅启用两步验证。
如果您无法启用两步验证,请咨询您的邮箱管理员。
Generate an app password#
要生成应用密码:
- 在您的 Google 账户中,转到应用密码。
- 为您的新应用密码输入应用名称,如
n8n 凭据
。 - 选择创建。
- 复制生成的应用密码。您将在 n8n 凭据中使用此密码。
有关更多信息,请参阅 Google 的使用应用密码登录文档。
Set up the credential#
To set up the Send Email credential to use Gmail:
- Enter your Gmail email address as the User.
- Enter the app password you generated above as the Password.
- Enter
smtp.gmail.com
as the Host. - For the Port:
- Keep the default
465
for SSL or if you're unsure what to use. - Enter
587
for TLS.
- Keep the default
- 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.