Çiçekçi Asistanı Docs
Çiçekçi Asistanı Docs
HomeAnother Page
Folder
Setting Up Your DatabaseSuper Admin
Setting Up Resend
SetupEmail

Setting Up Resend

Set up Resend for reliable email delivery in your Indie Kit application.

Setting Up Resend

This guide will help you set up Resend for reliable email delivery in your application.

Prerequisites

  1. A Resend account (sign up at resend.com)
  2. Access to your domain's DNS settings
  3. Domain verified in Resend

Domain Verification

  1. Go to Resend Dashboard
  2. Navigate to Domains > Add Domain
  3. Follow the DNS verification steps
  4. Add the provided DNS records to your domain

Implementation

The kit includes Resend integration in src/lib/email/sendMail.ts. Install the dependency if needed:

pnpm add resend

The implementation:

  • Development: Logs email details to the console (no API call)
  • Production: Sends via Resend when RESEND_API_KEY is set

Sender name and email come from src/lib/config.ts (appConfig.email.senderName and appConfig.email.senderEmail).

Environment Variables

Add to your .env (template) and set the real value in .env.local:

RESEND_API_KEY=""

In .env.local:

RESEND_API_KEY=re_xxxxxxxxxxxx

Get your API key from the Resend dashboard.

Testing Email Setup

  1. Send a test email using Resend dashboard
  2. Monitor delivery in Resend logs
  3. Check email headers for proper authentication

Important Notes

  1. DNS propagation takes time (24-48 hours)
  2. Monitor email reputation in Resend dashboard
  3. Keep bounce rate low
  4. Use production API key in production

Remember to wait for DNS propagation before testing your email setup. Rushing this process can lead to delivery issues!

Password-Based Authentication

Let users sign in with email and password - the classic authentication method everyone knows and trusts.

Dodo Payments Integration

Set up Dodo Payments for your Indie Kit application - API, webhooks, and plan mapping.

On this page

Setting Up ResendPrerequisitesDomain VerificationImplementationEnvironment VariablesTesting Email SetupImportant Notes