Is it possible to user my own email provider rather than SendGrid & Mailgun?
I'm currently using Resend for all my production apps and I would like to only stick to one email provider rather than switching to SendGrid/Mailgun
4 Replies
Hi @LuzzaMcGuzza. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Wasp supports several built-in email providers: Dummy (for development), Mailgun, SendGrid, and SMTP. If your email provider (like Resend) supports SMTP, you can use it with Wasp by configuring the SMTP provider in your main.wasp file and providing the necessary SMTP credentials in your .env.server file. Here’s how you would set it up:
And in your
.env.server
:
Many transactional email providers, including some not explicitly listed (like Resend), can be used this way as long as they offer SMTP access. However, if your provider does not support SMTP and only offers a custom API, Wasp does not currently provide a built-in way to integrate arbitrary providers directly—only the listed ones and SMTP are supported out of the box.
For more details, see the documentation on email providers and SMTP setup.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @LuzzaMcGuzza, 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?I'm using admin@admin.com but i dont receive any dummy email verification link in my logs
hi @kapa.ai I'm using admin@admin.com but i dont receive any dummy email verification link in my logs
Let me check the knowledge base for you again. One moment! :books:
----------------------
If you are using the Dummy email provider in Wasp, verification emails should be logged to your console, not actually sent. If you are not seeing any email verification logs when signing up with admin@admin.com, here are a few things to check:
1. Check if Email Verification is Enabled:
Make sure your
If you have the environment variable
See docs. 3. Check the Console Output:
The Dummy provider logs emails to the terminal where your Wasp server is running. Make sure you are looking at the correct terminal window. If you have confirmed all of the above and still do not see the email logs, double-check your signup flow and ensure that the email verification step is being triggered. If you need to skip email verification during development, you can use the
Make sure your
main.wasp
file includes the emailVerification
configuration under the email
auth method, like this:
And ensure you have set up the Dummy provider:
See docs and here.
2. Check for SKIP_EMAIL_VERIFICATION_IN_DEV:If you have the environment variable
SKIP_EMAIL_VERIFICATION_IN_DEV=true
in your .env.server
, Wasp will skip sending verification emails in development, and you won't see any logs for them. Remove or set this variable to false
if you want to see the verification emails in your logsSee docs. 3. Check the Console Output:
The Dummy provider logs emails to the terminal where your Wasp server is running. Make sure you are looking at the correct terminal window. If you have confirmed all of the above and still do not see the email logs, double-check your signup flow and ensure that the email verification step is being triggered. If you need to skip email verification during development, you can use the
SKIP_EMAIL_VERIFICATION_IN_DEV
variable, but if you want to test the flow, make sure it is not set to true
See docs.
If you need more help, please share your relevant main.wasp
configuration and any related logs or errors.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @LuzzaMcGuzza, 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?Hey @LuzzaMcGuzza does Resend support SMTP? Check this out: https://wasp.sh/docs/advanced/email#using-the-smtp-provider
Sending Emails | Wasp
With Wasp's email-sending feature, you can easily integrate email functionality into your web application.