Skip to content

Commit 2e5d374

Browse files
8ctopusmrsdizziezeripathsapkjamesorlakin
authored
Documentation - updated email setup (#10695)
* Updated email setup documentation to include sendmail option * Update docs/content/doc/usage/email-setup.en-us.md full path to sendmail Co-Authored-By: mrsdizzie <[email protected]> * Update docs/content/doc/usage/email-setup.en-us.md docker image does not have sendmail Co-Authored-By: Antoine GIRARD <[email protected]> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: Antoine GIRARD <[email protected]> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <[email protected]> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <[email protected]> Co-authored-by: 8ctopus <[email protected]> Co-authored-by: mrsdizzie <[email protected]> Co-authored-by: zeripath <[email protected]> Co-authored-by: Antoine GIRARD <[email protected]> Co-authored-by: James Lakin <[email protected]>
1 parent da1633a commit 2e5d374

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

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

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,33 @@ menu:
1515

1616
# Email setup
1717

18-
- To use Gitea's built-in Email support, update the `app.ini` config file [mailer] section:
18+
To use Gitea's built-in Email support, update the `app.ini` config file [mailer] section:
1919

20+
## Sendmail version
21+
Use the operating system’s sendmail command instead of SMTP. This is common on Linux servers.
22+
Note: For use in the official Gitea Docker image, please configure with the SMTP version.
2023
```ini
2124
[mailer]
22-
ENABLED = true
23-
HOST = mail.mydomain.com:587
24-
25-
26-
PASSWD = `password`
25+
ENABLED = true
26+
27+
MAILER_TYPE = sendmail
28+
SENDMAIL_PATH = /usr/sbin/sendmail
29+
```
30+
31+
## SMTP version
32+
```ini
33+
[mailer]
34+
ENABLED = true
35+
36+
MAILER_TYPE = smtp
37+
HOST = mail.mydomain.com:587
38+
IS_TLS_ENABLED = true
39+
40+
PASSWD = `password`
2741
```
2842

2943
- Restart Gitea for the configuration changes to take effect.
3044

3145
- To send a test email to validate the settings, go to Gitea > Site Administration > Configuration > SMTP Mailer Configuration.
3246

33-
For the full list of options check the [Config Cheat Sheet]({{< relref "doc/advanced/config-cheat-sheet.en-us.md" >}})
47+
For the full list of options check the [Config Cheat Sheet]({{< relref "doc/advanced/config-cheat-sheet.en-us.md" >}})

0 commit comments

Comments
 (0)