mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-04 14:46:57 -05:00
Update Gmail mailer configuration (#22291)
This PR updates the `[mailer]` configuration snippet for Gmail: - The `HELO_HOSTNAME` isn't required. - The `USER` must not include the @gmail domain. - `HOST` needs to be supplied, and the SMTP port number needs to be appended to the URL. I also added a note about the requirement to use App passwords instead of your Google account password directly. Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
parent
b994b2ea9c
commit
e61ce934bc
@ -76,12 +76,15 @@ The following configuration should work with GMail's SMTP server:
|
|||||||
```ini
|
```ini
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
|
HOST = smtp.gmail.com:465 ; Remove this line for Gitea >= 1.18.0
|
||||||
SMTP_ADDR = smtp.gmail.com
|
SMTP_ADDR = smtp.gmail.com
|
||||||
SMTP_PORT = 465
|
SMTP_PORT = 465
|
||||||
FROM = example@gmail.com
|
FROM = example.user@gmail.com
|
||||||
USER = example@gmail.com
|
USER = example.user
|
||||||
PASSWD = ***
|
PASSWD = ***
|
||||||
MAILER_TYPE = smtp
|
MAILER_TYPE = smtp
|
||||||
IS_TLS_ENABLED = true
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user