
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
1attachmentsNon-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamccarray
SubTypestring
customFieldsobject
customMessagestring
embeddedImagesNon-dynamicarray
Definitions
io.kestra.plugin.twilio.sendgrid.SendGridMailSend-Attachment
name*Requiredstring
uri*Requiredstring
contentTypestring
Default
application/octet-streamexecutionIdstring
Default
{{ execution.id }}htmlContentstring
subjectstring
templateRenderMapobject
textContentstring
Outputs
bodystring
headersobject
SubTypestring
statusCodeinteger
Default
0