SendGridMailExecution
yaml
type: "io.kestra.plugin.notifications.sendgrid.sendgridmailexecution"
Examples
yaml
id: failure_alert
namespace: company.team
tasks:
- id: send_alert
type: io.kestra.plugin.notifications.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
1
sendgridApiKey *Requiredstring
Min length
1
to *Requiredarray
SubType string
Min items
1
cc array
SubType string
customFields object
customMessage string
executionId string
Default
{{ execution.id }}
htmlContent string
subject string
templateRenderMap object
textContent string
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