> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipkit.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Emails with Resend

<img src="https://mintcdn.com/shipkit/HuQd_kWdB4hOr_Br/images/resend.png?fit=max&auto=format&n=HuQd_kWdB4hOr_Br&q=85&s=706c05e1645ecf163781607046080899" alt="Resend" width="2400" height="700" data-path="images/resend.png" />

Resend is a simple, yet powerful email service that allows you to send transactional emails with ease. It's designed for developers looking for a lightweight, yet secure email system that integrates seamlessly with various frameworks.

Sign up for a <a href="https://resend.com" target="_blank">Resend</a> account.

## Environment variables

Add your API key and audience ID to the `.env` file.

```ini theme={null}
# .env
RESEND_API_KEY=
RESEND_AUDIENCE_ID=
```

## Usage

```typescript theme={null}
import { sendEmail } from '~/core/email';

await sendEmail({
  subject: 'Test email',
  to: 'user@test.com',
  from: 'contact@yourcompany.com',
  html: 'This is a test email from <b>ShipKit</b>.',
})
```
