mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 07:22:43 +01:00
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 <info@mrsdizzie.com> * Update docs/content/doc/usage/email-setup.en-us.md docker image does not have sendmail Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: Antoine GIRARD <sapk@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com> * Update docs/content/doc/usage/email-setup.en-us.md Co-Authored-By: James Lakin <jamesorlakin@users.noreply.github.com> Co-authored-by: 8ctopus <hello@octopuslabs.io> Co-authored-by: mrsdizzie <info@mrsdizzie.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: James Lakin <jamesorlakin@users.noreply.github.com>
This commit is contained in:
parent
da1633a5d4
commit
2e5d37463e
1 changed files with 21 additions and 7 deletions
|
@ -15,13 +15,27 @@ menu:
|
||||||
|
|
||||||
# Email setup
|
# Email setup
|
||||||
|
|
||||||
- To use Gitea's built-in Email support, update the `app.ini` config file [mailer] section:
|
To use Gitea's built-in Email support, update the `app.ini` config file [mailer] section:
|
||||||
|
|
||||||
|
## Sendmail version
|
||||||
|
Use the operating system’s sendmail command instead of SMTP. This is common on Linux servers.
|
||||||
|
Note: For use in the official Gitea Docker image, please configure with the SMTP version.
|
||||||
```ini
|
```ini
|
||||||
[mailer]
|
[mailer]
|
||||||
ENABLED = true
|
ENABLED = true
|
||||||
HOST = mail.mydomain.com:587
|
|
||||||
FROM = gitea@mydomain.com
|
FROM = gitea@mydomain.com
|
||||||
|
MAILER_TYPE = sendmail
|
||||||
|
SENDMAIL_PATH = /usr/sbin/sendmail
|
||||||
|
```
|
||||||
|
|
||||||
|
## SMTP version
|
||||||
|
```ini
|
||||||
|
[mailer]
|
||||||
|
ENABLED = true
|
||||||
|
FROM = gitea@mydomain.com
|
||||||
|
MAILER_TYPE = smtp
|
||||||
|
HOST = mail.mydomain.com:587
|
||||||
|
IS_TLS_ENABLED = true
|
||||||
USER = gitea@mydomain.com
|
USER = gitea@mydomain.com
|
||||||
PASSWD = `password`
|
PASSWD = `password`
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue