The contact form supports three email providers. Set your choice in markdesk.config.ts and add the corresponding environment variable.
Resend
Resend is a modern email API with a generous free tier.
- Sign up at resend.com and get an API key.
- Set
emailSender: 'resend'inmarkdesk.config.ts. - Add your API key to
.env:
RESEND_API_KEY=re_xxxxxxxxxxxxx
- Install the package:
npm install resend
- Verify your sending domain in the Resend dashboard. The
fromEmailin your config must use a verified domain.
SendGrid
SendGrid is an established email delivery service.
- Sign up at sendgrid.com and create an API key with "Mail Send" permissions.
- Set
emailSender: 'sendgrid'inmarkdesk.config.ts. - Add your API key to
.env:
SENDGRID_API_KEY=SG.xxxxxxxxxxxxx
- Install the package:
npm install @sendgrid/mail
- Verify a sender identity in SendGrid. The
fromEmailin your config must be a verified sender.
Nodemailer (SMTP)
Use any SMTP server — your own mail server, Gmail, Amazon SES, etc.
- Set
emailSender: 'nodemailer'inmarkdesk.config.ts. - Add your SMTP credentials to
.env:
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your-username
SMTP_PASS=your-password
- Install the package:
npm install nodemailer
Testing
After setting up your email provider, test the contact form by submitting a message through your help center. Check that emails are delivered to the supportEmail address in your config.