Mailgun lets you send customized email messages to your users. These emails can be sent immediately or scheduled. You can send emails for purposes like reminders, promotions, announcements, and even custom authentication flows.
1. Add provider
To add Mailgun as a provider, navigate to Messaging > Providers > Add provider > Email.

Give your provider a name > choose Mailgun > click Save and continue. The provider will be saved to your project, but not enabled until you complete its configuration.
2. Configure provider
In the Configure step, you will need to provide details from your Mailgun dashboard to connect your Appwrite project.

You will need to provide the following information from your Mailgun dashboard.
| Field name | |
|---|---|
| API key | Head to Profile -> API Security -> Add new key. |
| Domain | Head to Sending -> Domains -> Add new domain. Follow Mailgun's instructions to verify the domain name. |
| EU region | Enable the EU region setting if your domain is within the European Union. |
| Sender email | The provider sends emails from this sender email. The sender email needs to be an email under the configured domain. |
| Sender name | The sender name that appears in the emails sent from this provider. |
| Reply-to email | The reply-to email that appears in the emails sent from this provider. The reply-to email needs to be an email under the configured domain. |
| Reply-to name | The reply-to name that appears in the emails sent from this provider. |
After adding the following details, click Save and continue to enable the provider.
3. Test provider
Before sending your first message, make sure you've configured a topic and a target to send messages to.
You can follow the Send email messages journey to send your first push notification and test your provider.
4. Manage provider
Was this page helpful?
Share what worked or what we should fix. Once approved, our agents automatically apply suggested updates to the docs.