Send
Send email via Resend API
Send
Send email via Resend API
yaml
type: io.kestra.plugin.resend.email.SendExamples
yaml
id: send_email
namespace: company.team
tasks:
- id: notify
type: io.kestra.plugin.resend.email.Send
from: "your-email@example.com"
to:
- "demo@example.com"
subject: "Welcome!"
html: "<h1>Hello</h1>"
apiKey: "{{ secret('RESEND_API_KEY') }}"
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: "user@example.com"
to:
- "recipient@example.com"
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') }}"
yaml
id: send_email_scheduled
namespace: company.team
tasks:
- id: send_email
type: io.kestra.plugin.resend.email.Send
from: "alerts@example.com"
to:
- "ops@example.com"
subject: "Nightly report"
text: "Report ready. See attached log."
attachments:
- name: "log.txt"
path: "https://example.com/logs/today.txt"
tags:
- name: "env"
value: "prod"
- name: "type"
value: "report"
headers:
X-Source: "kestra-flow"
scheduledAt: "2024-08-05T11:52:01.858Z"
apiKey: "{{ secret('RESEND_API_KEY') }}"
Properties
apiKey *Requiredstring
from *Requiredstring
subject *Requiredstring
to *Requiredarray
SubTypestring
attachments array
Definitions
io.kestra.plugin.resend.email.Send-Attachment
name*Requiredstring
contentIdstring
contentTypestring
pathstring
uristring
bcc array
SubTypestring
cc array
SubTypestring
headers object
SubTypestring
html string
idempotencyKey string
replyTo array
SubTypestring