Switching Email Providers

This project uses resend API as the default email provider for sending real emails in prod, if you would like to use another email provider it is a very simple process.

Setup the nodemailer transport in auth/transporter.ts with the credentials of your new email provider using an if statement to account for the NODE_ENV environment.

Add the code to send react-email emails with nodemailer as detailed in the guide below.

Then substitute that new code in place of the resend api code in /auth/sendEmail.ts

You will now be able to send emails with your new email provider.

https://react.email/docs/integrations/nodemailer (opens in a new tab)