From 1449b6fa4be74690c1c6df396e407ff9a7a3e330 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 6 Apr 2020 21:18:42 +0100 Subject: [PATCH] Add docs for gmail (#10995) Fix #10971 Signed-off-by: Andrew Thornton Co-authored-by: Lauris BH --- doc/usage/email-setup.en-us.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/doc/usage/email-setup.en-us.md b/doc/usage/email-setup.en-us.md index bf5ac460..68351d09 100644 --- a/doc/usage/email-setup.en-us.md +++ b/doc/usage/email-setup.en-us.md @@ -45,3 +45,19 @@ PASSWD = `password` - To send a test email to validate the settings, go to Gitea > Site Administration > Configuration > SMTP Mailer Configuration. For the full list of options check the [Config Cheat Sheet]({{< relref "doc/advanced/config-cheat-sheet.en-us.md" >}}) + +### Gmail + +The following configuration should work with GMail's SMTP server: + +```ini +[mailer] +ENABLED = true +HOST = smtp.gmail.com:465 +FROM = example@gmail.com +USER = example@gmail.com +PASSWD = *** +MAILER_TYPE = smtp +IS_TLS_ENABLED = true +HELO_HOSTNAME = example.com +```