Email with MailGun

Hello everyone, I could successfully use sendgrid in my app, but if I try to use MailGun it doesn't recognize it like it did with Sendgrid. I built it on top of opensaas. Did anyone used MailGun?
3 Replies
kapa.ai
kapa.ai3mo ago
Hi @Stefan Vitória. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Yes, you can use Mailgun as an email provider in your Wasp application. Here are the steps to set it up: 1. Set the provider to Mailgun in the main.wasp file. Your code should look like this:
app Example {
...
emailSender: {
provider: Mailgun,
}
}
app Example {
...
emailSender: {
provider: Mailgun,
}
}
2. Get the Mailgun API key and domain. You can do this by creating an account on Mailgun (https://www.mailgun.com/), then creating a new API key and a new domain. 3. Add the Mailgun API key and domain to your .env.server file. Your file should look like this:
MAILGUN_API_KEY=
MAILGUN_DOMAIN=
MAILGUN_API_KEY=
MAILGUN_DOMAIN=
Please replace the placeholders with your actual Mailgun API key and domain. If you've done all these steps and it's still not working, please make sure that you've correctly set up your Mailgun account and that your API key and domain are correct. For more information, you can refer to the Wasp documentation on using the Mailgun provider (https://wasp-lang.dev/docs/advanced/email#using-the-mailgun-provider). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ---------------------- Sorry @Stefan Vitória, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
miho
miho3mo ago
try to use MailGun
Did you try tryping Maingun with a lowercase G? 🙂
Stefan Vitória
Stefan VitóriaOP2mo ago
It worked. This one is on me. Thanks @miho
Want results from more Discord servers?
Add your server