SendGridMailSend
yaml
type: "io.kestra.plugin.notifications.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.notifications.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
Outputs
body string
headers object
SubType string
statusCode integer
Default
0
Definitions
io.kestra.plugin.notifications.sendgrid.SendGridMailSend-Attachment
name *Requiredstring
uri *Requiredstring
contentType string
Default
application/octet-stream