forked from gitea/gitea
Update "email usage" page to current ver. (1.18) (#21649)
In version 1.18 the naming scheme for smtp has been changed, HOST has been split in SMTP_ADDR and SMTP_PORT (https://docs.gitea.io/en-us/config-cheat-sheet/#mailer-mailer).
This commit is contained in:
parent
57a0a7ef64
commit
8f85a49947
|
@ -47,7 +47,8 @@ Directly use SMTP server as relay. This option is useful if you don't want to se
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
FROM = gitea@mydomain.com
|
FROM = gitea@mydomain.com
|
||||||
MAILER_TYPE = smtp
|
MAILER_TYPE = smtp
|
||||||
HOST = mail.mydomain.com:587
|
SMTP_ADDR = mail.mydomain.com
|
||||||
|
SMTP_PORT = 587
|
||||||
IS_TLS_ENABLED = true
|
IS_TLS_ENABLED = true
|
||||||
USER = gitea@mydomain.com
|
USER = gitea@mydomain.com
|
||||||
PASSWD = `password`
|
PASSWD = `password`
|
||||||
|
@ -75,7 +76,8 @@ The following configuration should work with GMail's SMTP server:
|
||||||
```ini
|
```ini
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
HOST = smtp.gmail.com:465
|
SMTP_ADDR = smtp.gmail.com
|
||||||
|
SMTP_PORT = 465
|
||||||
FROM = example@gmail.com
|
FROM = example@gmail.com
|
||||||
USER = example@gmail.com
|
USER = example@gmail.com
|
||||||
PASSWD = ***
|
PASSWD = ***
|
||||||
|
|
Loading…
Reference in New Issue