Skip to main content
AspFox sends transactional email via Resend. All 12 email templates are already written — you configure the API key and sending address.

Local development

Create a Resend account and API key

  1. Sign up at resend.com
  2. Go to API KeysCreate API Key
  3. Add to .env: RESEND_API_KEY=re_…

Use the shared onboarding address

Without a verified domain, use onboarding@resend.dev as your FROM address. Resend allows all accounts to send from this address for testing.
Every email you send appears in the Emails section of the Resend dashboard with delivery status, the full rendered HTML, and bounce/open tracking.
With onboarding@resend.dev, emails can only be sent to the email address that owns the Resend account. To send to other addresses during development, you need to verify a domain.

Production

Verify your sending domain

  1. Resend Dashboard → DomainsAdd Domain
  2. Enter your domain (e.g., yourdomain.com)
  3. Add the DNS records Resend provides (DKIM, SPF, DMARC)
  4. Wait for verification (usually minutes; up to 24 hours)

Update your sending address

Email templates

AspFox includes 12 pre-built HTML templates. All use inline styles for email client compatibility. Template classes live in src/YourProject.Infrastructure/Email/Templates/. Each extends EmailTemplateBase and implements RenderContent() to return the email body HTML.

Testing email rendering locally

To preview a template without sending it:
Then open /tmp/email-preview.html in a browser to see the rendered template. Delete the temporary code afterward.