SendGridMailSend
SendGridMailSend
yaml
type: "io.kestra.plugin.twilio.sendgrid.SendGridMailSend"Examples
yaml
id: unreliable_flow
namespace: company.team
tasks:
- id: fail
type: io.kestra.plugin.scripts.shell.Commands
runner: PROCESS
commands:
- exit 1
errors:
- id: send_email
type: io.kestra.plugin.twilio.sendgrid.SendGridMailSend
from: hello@kestra.io
to:
- hello@kestra.io
sendgridApiKey: "{{ secret('SENDGRID_API_KEY') }}"
subject: "Kestra workflow failed for the flow {{flow.id}} in the namespace {{flow.namespace}}"
htmlTextContent: "Failure alert for flow {{ flow.namespace }}.{{ flow.id }} with ID {{ execution.id }}"
Properties
from *Requiredstring
Min length
1sendgridApiKey *Requiredstring
Min length
1to *Requiredarray
SubTypestring
Min items
1attachments Non-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamcc array
SubTypestring
embeddedImages Non-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamhtmlContent string
subject string
textContent string
Outputs
body string
headers object
SubTypestring
statusCode integer
Default
0