From 1fd718cf531877c986579fa4f74288b9f5180e4c Mon Sep 17 00:00:00 2001 From: James Liu Date: Sat, 31 Dec 2022 11:53:50 +1100 Subject: [PATCH 1/2] Update Gmail mailer configuration --- docs/content/doc/usage/email-setup.en-us.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/content/doc/usage/email-setup.en-us.md b/docs/content/doc/usage/email-setup.en-us.md index 05cc19c13452c..db0caa1c31ee8 100644 --- a/docs/content/doc/usage/email-setup.en-us.md +++ b/docs/content/doc/usage/email-setup.en-us.md @@ -76,12 +76,15 @@ The following configuration should work with GMail's SMTP server: ```ini [mailer] ENABLED = true +HOST = smtp.gmail.com:465 SMTP_ADDR = smtp.gmail.com SMTP_PORT = 465 -FROM = example@gmail.com -USER = example@gmail.com +FROM = example.user@gmail.com +USER = example.user PASSWD = *** MAILER_TYPE = smtp IS_TLS_ENABLED = true -HELO_HOSTNAME = example.com ``` + +Note that you'll need to create and use an [App password](https://support.google.com/accounts/answer/185833?hl=en) by enabling 2FA on your Google +account. You won't be able to use your Google account password directly. From b5a1fe5c4579952b5dd840250c29e2fa30741e6a Mon Sep 17 00:00:00 2001 From: James Liu Date: Mon, 2 Jan 2023 11:02:24 +1100 Subject: [PATCH 2/2] Update docs/content/doc/usage/email-setup.en-us.md Co-authored-by: delvh --- docs/content/doc/usage/email-setup.en-us.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/content/doc/usage/email-setup.en-us.md b/docs/content/doc/usage/email-setup.en-us.md index db0caa1c31ee8..6d6b18786ccbc 100644 --- a/docs/content/doc/usage/email-setup.en-us.md +++ b/docs/content/doc/usage/email-setup.en-us.md @@ -76,7 +76,7 @@ The following configuration should work with GMail's SMTP server: ```ini [mailer] ENABLED = true -HOST = smtp.gmail.com:465 +HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0 SMTP_ADDR = smtp.gmail.com SMTP_PORT = 465 FROM = example.user@gmail.com