Skip to content

Commit 8f85a49

Browse files
authored
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).
1 parent 57a0a7e commit 8f85a49

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/content/doc/usage/email-setup.en-us.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ Directly use SMTP server as relay. This option is useful if you don't want to se
4747
ENABLED = true
4848
4949
MAILER_TYPE = smtp
50-
HOST = mail.mydomain.com:587
50+
SMTP_ADDR = mail.mydomain.com
51+
SMTP_PORT = 587
5152
IS_TLS_ENABLED = true
5253
5354
PASSWD = `password`
@@ -75,7 +76,8 @@ The following configuration should work with GMail's SMTP server:
7576
```ini
7677
[mailer]
7778
ENABLED = true
78-
HOST = smtp.gmail.com:465
79+
SMTP_ADDR = smtp.gmail.com
80+
SMTP_PORT = 465
7981
8082
8183
PASSWD = ***

0 commit comments

Comments
 (0)