Creating Resend Account
Resend is not mandatory. You can use any other email service provider. Please keep the environment variable names as shown in the documentation.
To use SMTP service to send your email notifications within the app, you need to create an account on any email service provider such as Resend (opens in a new tab). Once you have created an account, you need an API key. In case of Resend, you can get your API key from the API page (opens in a new tab).
Verifying Domain
Resend is an SMTP toolkit, hence, you need to attach a domain that you already have or plan to use with the
application. Navigate to the Domain
tab and click Add Domain
button. Enter your domain that you wish to use
and then enter all of the records provided by Resend with in the DNS Records section of your domain registrar
account. For a better guideline, you can follow the
Custom Domain With Resend Tutorial By Codewithguillaume (opens in a new tab).
Please make sure that you enter the DNS Records
in the account you used to
purchase your domain. Sometimes, users mistakenly enter the DNS Records
in
the hosting account.
Replacing API Key
Once you have setup your domain, Navigate to the API Keys
tab and generate a new key. Replace
your-resend-api-key
with your original Resend API key
from API page (opens in a new tab). This will
help you to send emails using your email service.