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

# Resend Email Integration with WorldVisa

> Connect Resend to WorldVisa to send transactional emails through workflows. Store your Resend API key and verified sending domain in the WorldVisa dashboard for delivery.

You can use the [Resend](https://resend.com/) provider to send transactional emails to your customers using the WorldVisa Developer Platform with a single API to create multi-channel experiences.

## Getting Started

To use the Resend provider in the email channel, you will need to create a Resend account and add your API key to the Resend integration on the WorldVisa Developer Platform.

## Generating an API Key

To generate a new API key in Resend, you can follow these steps:

* [Sign up](https://resend.com/secret) or [Log in](https://resend.com/login) to your Resend account.
* Click on the **API Keys** link in the left sidebar, and then click the "Create API Key" button on the top right part of the page.
* On the [API Keys](https://resend.com/api-keys) page, click the **Create API Key** button.
* Give the API key a name and click on the **Add** button.
* Copy the generated API Key.

## Authenticating your Sender Identity

Before you can send emails on a large scale, you will need to authenticate your Sender Identity.

Resend allows you to authenticate your sender identity using [Domain Authentication](https://resend.com/docs/dashboard/domains/introduction).

## Creating a Resend integration with WorldVisa

* Visit the Integrations page on WorldVisa.
* Click on Add a Provider.
* Select Resend service.
* Enter your Resend API Key.
* Fill in the `From email address` field using the authenticated email from the previous step.
  * For testing, you can use `onboarding@resend.dev` if you have not authenticated your sender identity.
* Fill in the `Sender's name`.
* Click on the `Disabled` button and mark it as `Active`.
* Click on the **Update** button.
* You should now be able to send notifications using Resend in WorldVisa.

## React Email with Code Steps

> [!TIP]
>
> Resend maintains [React Email](https://react.email). Use WorldVisa Code Steps to author templates in React Email and deliver them through your Resend integration - no dashboard HTML editor required.

1. Connect Resend in WorldVisa (steps below).
2. Add an email step and switch it to **Custom Code**.
3. Publish a handler linked to your React Email template:

```bash theme={null}
npx WorldVisa step publish \
  --workflow your-workflow-id \
  --step your-email-step-id \
  --template ./emails/welcome.tsx \
  --secret-key nv-sk-...
```

The CLI scaffolds a handler that calls `render()` from `@react-email/components` and returns HTML for WorldVisa to send via Resend. See Code Steps for the more details.

## Next Steps

> [card] [Configure bcc, cc, and reply-to](https://docs.worldvisagroup.com/developers/integrations/email#sending-email-overrides)
>
> Learn how to configure bcc, cc, and reply-to for your email notifications using email overrides

> [card] [Sending email attachments](https://docs.worldvisagroup.com/developers/integrations/email#sending-email-attachments)
>
> Learn how to send attachments with email notifications

> [card] [Use different email integration](https://docs.worldvisagroup.com/developers/integrations/email#sending-email-overrides)
>
> Learn how to use different email provider integrations to be used to send emails


## Related topics

- [Outlook 365 Email Integration with WorldVisa](https://docs.worldvisagroup.com/developers/integrations/email/outlook365.md)
- [Custom SMTP Email Integration with WorldVisa](https://docs.worldvisagroup.com/developers/integrations/email/custom-smtp.md)
- [SendGrid Email Integration with WorldVisa](https://docs.worldvisagroup.com/developers/integrations/email/sendgrid.md)
- [Integration conditions](https://docs.worldvisagroup.com/developers/integrations/integration-conditions.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.