Introduction

Mercur uses Resend as an email service provider to handle notifications. The integration enables sending emails for various events such as order confirmations, password resets, and seller notifications.

Setup

To use Resend with Mercur, you’ll need to:
  1. Create a Resend account at resend.com
  2. Obtain your API key from the Resend dashboard
  3. Add the following environment variables to your .env file:
RESEND_API_KEY=your_api_key_here
RESEND_FROM_EMAIL=sender_email_address

Custom Templates

You can customize email templates by modifying the template files in the apps/backend/src/modules/resend/email-templates directory. The templates use React Email components for consistent styling and layout.