Skip to content
Back

Appwrite not using mail provider (mailgun) for sending OTP ?

  • 0
  • Cloud
beyondthewatch
11 Dec, 2025, 14:28

I've added a Mail Provider (Mailgun) following the instructions here https://appwrite.io/docs/products/messaging/mailgun

I can send messages via mailgun using that. But I'm not in the email marketing game. All I want is for OTP emails to be sent via my custom domain using mailgun. I thought addding the email Provider would be enough but OTP are still arriving from:

Appwrite noreply@appwrite.io

Do I really have to set up a custom SMTP server (using Mailgun) ? This sort of makes the email Provider setup (above) redundant.

Thank you to anybody who can clarify.

TL;DR
Developers are questioning the need to set up a custom SMTP server (Mailgun) in addition to configuring the email provider for OTP emails in Appwrite. Previously experienced issues when enabling both; suggests using only custom SMTP. The email provider setup is free but customization of emails falls under the pro tier. Solution: Set up a custom SMTP server (Mailgun) for OTP emails via your custom domain. The email provider setup alone may not be sufficient for this purpose.
Axistro
11 Dec, 2025, 14:41

It seems it falls under custom smtp. The email provider setup is free for all if anyone building anything. And the customization of emails falls under pro. As the free tier related stuff will sometimes contain branding.

beyondthewatch
11 Dec, 2025, 14:47

Thanks @Axistro . Am actually on the Pro tier... just surprised that we have to set up a custom SMTP server as well as the Email Provider which we've already configured.

Thanks for confirming.

Axistro
11 Dec, 2025, 14:49

I dont think both are needed. Only one is enough. Although I forgot the details, long ago In one of my projects I enabled custom smtp and email provider at the same time, which caused some glitch I think and non of the mails were comming then I switched to only custom smtp which seems to have fixed the issue. But it was long ago. Feel free to experiement.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more