Appearance
Resend
Learn how to set up and use Resend for sending emails in your application.
SaasPilot comes configured with Resend, but you can easily integrate other email services if you prefer. An email provider is required for essential features such as email verification, password resets, and other transactional emails.

Setup
- Create a Resend Account: Visit Resend and sign up for a new account if you haven’t already.
- Add Your Domain: In the Resend dashboard, go to the Domains page and add your domain.
- Verify Your Domain: Complete the DNS verification steps provided by Resend. After updating your DNS records, click
Verify DNS Recordsin the dashboard. - Generate an API Key: Navigate to API Keys page and create an API key.
- Save Your API Key Securely: Copy the API key immediately, as it will only be shown once. Add it to your project's
.env.
txt
AUTH_RESEND_KEY = re_xxxxxxxxxxxxxxxxxxxx;Configuration
Make sure your config.ts is updated to match your Resend configuration. Pay special attention to the from addresses and supportEmail fields to ensure emails are sent from the correct addresses:
ts
export const appConfig = {
resend: {
fromNoReply: `SaasPilot <noreply@resend.yourdomain.com>`,
fromAdmin: `SaasPilot <yourname@resend.yourdomain.com>`,
supportEmail: "support@yourdomain.com",
resendKey: process.env.AUTH_RESEND_KEY
}
};Clean Up Alternative Email Services
If you're using Resend and want to remove the alternative email service files that come with SaasPilot, follow these steps:
1. Delete Unused Service Files
Remove the following folders from your project:
lib/nodemailer- Contains SMTP/Nodemailer configurationlib/mailgun- Contains Mailgun configuration
You can delete these folders manually through your file explorer or code editor.
2. Uninstall Unused Packages
Open your terminal in the project directory and run:
sh
npm uninstall nodemailer mailgun3. Update Config File
Remove smtp and mailgun property from appConfig which is located in config.ts
ts
export const appConfig = {
// Remove or comment out these
// mailgun: {
// domain: "",
// apiKey: "",
// fromNoReply: ``,
// fromAdmin: ``,
// supportEmail: ""
// },
// smtp: {
// from: "",
// host: "",
// port: "",
// secure: "",
// auth: {
// user: "",
// pass: ""
// }
// }
};