To set-up email for Gitea check out the the following email providers recommended by Discourse:
Assuming you chose Mailgun do the following:
- Add your Gitea domain in Mailgun
- Add the Mailgun-suggested DNS records to domain. Rather than waiting 24-48 hours for DNS propogation look for the button inside Mailgun to check manually from the Mailgun dashboard.
- Edit your
app.inifile to enable user registrations, email confirmations and set a noreply address. Look in the
[services]section for this stuff and reference the Config Cheat Sheet for help.
- In the
[mailer]section set the following:
Consider also setting
ENABLE_NOTIFY_EMAIL while you’re in there, then save and exit
app.ini and then (assuming Docker) run a
docker container restart [container_id] (available from
Test emails can then be sent from the admin configuration settings as suggested here:
If all went well you should receive an email within a few seconds.