Send an email with Resend.

Send an email using the Resend API. Supports To, CC, BCC, Reply-To, scheduled sending, attachments, headers, and tags.

yaml
type: "io.kestra.plugin.resend.email.Send"

Send a simple email

yaml
id: send_email
namespace: company.team

tasks:
  - id: notify
    type: io.kestra.plugin.resend.email.Send
    from: "[email protected]"
    to:
      - "[email protected]"
    subject: "Welcome!"
    html: "<h1>Hello</h1>"
    apiKey: "{{ secret('RESEND_API_KEY') }}"

Send an email with attachment.

yaml
id: send_email_with_attachment
namespace: company.team

inputs:
  - id: user_file
    type: FILE

tasks:
  - id: send_email
    type: io.kestra.plugin.resend.email.Send
    from: "[email protected]"
    to:
      - "[email protected]"
    subject: "Welcome with attachment!"
    html: "<h1>Hello</h1><p>Hereโ€™s your file.</p>"
    attachments:
      - name: "test.pdf"
        uri: "{{ inputs.user_file }}"
        contentType: "application/pdf"
    apiKey: "{{ secret('RESEND_API_KEY') }}"
Properties

Resend API key

From

Sender email address โ€“ must be a verified domain in Resend.

Subject

The subject line of the email

SubType string

To

Recipient(s) โ€“ a single string or a list of addresses.

Attachments

File attachments (filename, content, contentType, contentId)

SubType string

BCC

Optional BCC recipients

SubType string

CC

Optional CC recipients

SubType string

Headers

Custom headers as key/value pairs

HTML Body

HTML content of the email

Idempotency Key

Optional unique key to avoid duplicate sends

SubType string

Reply-To

Optional Reply-To addresses

Scheduled At

The schedule of the email in ISO 8601 format (e.g., 2024-08-05T11: 52: 01.858Z)

SubType

Tags

Custom tags (name/value pairs) for tracking

Text Body

Plain text content of the email

Resend email ID

The name of the attachment (e.g., 'filename.txt')

A remote file URL (http/https) to attach

Use this for files available on the internet.

An attachment URI from Kestra internal storage