Email Service
Production-ready email service for sending emails in Servercn using nodemailer with support for multiple providers (Nodemailer, Resend, Mailtrap, etc.).
Installation Guide
Install this component using the following command:
npx servercn-cli@latest add email-service Prerequisites
Gmail Setup (Recommended for Development)
- Enable 2-Step Verification on your Google Account
- Generate an App Password:
- Go to Google Account → Security → 2-Step Verification → App passwords
- Create a new app password for "Mail"
- Copy the generated password
Environment Variables
Add the following to your .env file:
Nodemailer
Resend
Mailtrap