summaryrefslogtreecommitdiffstats
path: root/docs/content
diff options
context:
space:
mode:
authormelkor0 <alexander.sachse@gmail.com>2022-10-31 23:02:37 +0100
committerGitHub <noreply@github.com>2022-10-31 22:02:37 +0000
commit8f85a49947ae8546ecac76e0fdfd1c76e62784e6 (patch)
tree7062a113e7b65c5ee1fd2c9cea8cb48f76591c3b /docs/content
parent57a0a7ef64022ec984a85a8dd73224a66e959ffc (diff)
downloadgitea-8f85a49947ae8546ecac76e0fdfd1c76e62784e6.tar.gz
gitea-8f85a49947ae8546ecac76e0fdfd1c76e62784e6.zip
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).
Diffstat (limited to 'docs/content')
-rw-r--r--docs/content/doc/usage/email-setup.en-us.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/content/doc/usage/email-setup.en-us.md b/docs/content/doc/usage/email-setup.en-us.md
index 533e0fe1a8..05cc19c134 100644
--- a/docs/content/doc/usage/email-setup.en-us.md
+++ b/docs/content/doc/usage/email-setup.en-us.md
@@ -47,7 +47,8 @@ Directly use SMTP server as relay. This option is useful if you don't want to se
ENABLED = true
FROM = gitea@mydomain.com
MAILER_TYPE = smtp
-HOST = mail.mydomain.com:587
+SMTP_ADDR = mail.mydomain.com
+SMTP_PORT = 587
IS_TLS_ENABLED = true
USER = gitea@mydomain.com
PASSWD = `password`
@@ -75,7 +76,8 @@ 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
PASSWD = ***