Send an email with Resend.
Send an email using the Resend API. Supports To, CC, BCC, Reply-To, scheduled sending, attachments, headers, and tags.
type: "io.kestra.plugin.resend.email.Send"Examples
Send a simple email
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.
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
apiKey *Requiredstring
Resend API key
from *Requiredstring
From
Sender email address โ must be a verified domain in Resend.
subject *Requiredstring
Subject
The subject line of the email
to *Requiredarray
To
Recipient(s) โ a single string or a list of addresses.
bcc array
BCC
Optional BCC recipients
cc array
CC
Optional CC recipients
headers object
Headers
Custom headers as key/value pairs
html string
HTML Body
HTML content of the email
idempotencyKey string
Idempotency Key
Optional unique key to avoid duplicate sends
replyTo array
Reply-To
Optional Reply-To addresses
scheduledAt string
Scheduled At
The schedule of the email in ISO 8601 format (e.g., 2024-08-05T11: 52: 01.858Z)
text string
Text Body
Plain text content of the email
Outputs
id string
Resend email ID
Definitions
com.resend.services.emails.model.Tag
name string
value string
io.kestra.plugin.resend.email.Send-Attachment
name *Requiredstring
The name of the attachment (e.g., 'filename.txt')
contentId string
contentType string
path string
A remote file URL (http/https) to attach
Use this for files available on the internet.
uri string
An attachment URI from Kestra internal storage