
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
1attachmentsNon-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamccarray
SubTypestring
embeddedImagesNon-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamhtmlContentstring
subjectstring
textContentstring
Outputs
bodystring
headersobject
SubTypestring
statusCodeinteger
Default
0