Creator
Email

Email Overview

How transactional email works in Creator with Resend and Mailgun.

Emails are a crucial part of any web application — from verification messages to password resets and subscription notifications.

Creator supports two email providers. Set your choice via environment variable:

NEXT_PUBLIC_EMAIL_SERVICE="resend"  # or "mailgun"

You only need to configure the provider you pick. The email service uses a provider pattern in lib/services/email-service.ts that selects the right one at runtime.

Pre-built email functions

FunctionTriggered by
sendOTPEmailRegistration (OTP verification)
sendWelcomeEmailOAuth sign-up
sendPasswordResetEmailForgot password
sendSubscriptionConfirmationEmailNew subscription
sendSubscriptionCanceledEmailSubscription canceled
sendEmailChangeVerificationEmail change request
sendEmailChangedNotificationEmail change completed
sendContactEmailContact form submission
sendPaymentFailedEmailPayment failed

All functions are exported from lib/services/email-service.ts.

On this page

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.