SendGridMailExecution
SendGridMailExecution
yaml
type: "io.kestra.plugin.twilio.sendgrid.SendGridMailExecution"Examples
yaml
id: failure_alert
namespace: company.team
tasks:
- id: send_alert
type: io.kestra.plugin.twilio.sendgrid.SendGridMailExecution
to:
- hello@kestra.io
from: hello@kestra.io
subject: "The workflow execution {{trigger.executionId}} failed for the flow {{trigger.flowId}} in the namespace {{trigger.namespace}}"
sendgridApiKey: "{{ secret('SENDGRID_API_KEY') }}"
executionId: "{{ trigger.executionId }}"
triggers:
- id: failed_prod_workflows
type: io.kestra.plugin.core.trigger.Flow
conditions:
- type: io.kestra.plugin.core.condition.ExecutionStatus
in:
- FAILED
- WARNING
- type: io.kestra.plugin.core.condition.ExecutionNamespace
namespace: prod
prefix: true
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
customFields object
customMessage string
embeddedImages Non-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamexecutionId string
Default
{{ execution.id }}htmlContent string
subject string
templateRenderMap object
textContent string
Outputs
body string
headers object
SubTypestring
statusCode integer
Default
0