SendGridMailSend
Send an automated SendGrid email from a workflow.
type: "io.kestra.plugin.notifications.sendgrid.SendGridMailSend"
Send an email on a failed flow execution.
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 }}"
1
The address of the sender of this email
1
The SendGrid API KEY
1
Email address(es) of the recipient(s)
Note that each email address must be compliant with the RFC2822 format.
One or more 'Cc' (carbon copy) optional recipient(s) email address(es)
Note that each email address must be compliant with the RFC2822 format.
The optional email message body in HTML
Both text and HTML can be provided, either will be offered to the email client as alternative content.Email clients that support it, will favor HTML over plain text and ignore the text body completely.
The optional subject of this email
The optional email message body in plain text
Both text and HTML can be provided, either will be offered to the email client as alternative content.Email clients that support it, will favor HTML over plain text and ignore the text body completely.
0
The name of the attachment (eg. 'filename.txt')
An attachment URI from Kestra internal storage
application/octet-stream
One or more 'Cc' (carbon copy) optional recipient email address(es). Use semicolon as a delimiter to provide several addresses.
Note that each email address must be compliant with the RFC2822 format.