MailExecution
yaml
type: "io.kestra.plugin.notifications.mail.mailexecution"
Examples
yaml
id: failure_alert
namespace: company.team
tasks:
- id: send_alert
type: io.kestra.plugin.notifications.mail.MailExecution
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}}"
host: mail.privateemail.com
port: 465
username: "{{ secret('EMAIL_USERNAME') }}"
password: "{{ secret('EMAIL_PASSWORD') }}"
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
attachments arraystring
cc string
customFields object
customMessage string
embeddedImages arraystring
executionId string
Default
{{ execution.id }}
from string
host string
password string
plainTextContent string
port integerstring
sessionTimeout integerstring
Default
10000
subject string
templateRenderMap object
to string
transportStrategy string
Default
SMTPS
Possible Values
SMTP
SMTPS
SMTP_TLS
SMTP_OAUTH2