
MailExecution
MailExecution
yaml
type: "io.kestra.plugin.email.MailExecution"Examples
yaml
id: failure_alert
namespace: company.team
tasks:
- id: send_alert
type: io.kestra.plugin.email.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
attachmentsarraystring
ccstring
customFieldsobject
customMessagestring
embeddedImagesarraystring
executionIdstring
Default
{{ execution.id }}fromstring
hoststring
passwordstring
plainTextContentstring
portintegerstring
sessionTimeoutintegerstring
Default
10000subjectstring
templateRenderMapobject
tostring
transportStrategystring
Default
SMTPSPossible Values
SMTPSMTPSSMTP_TLSSMTP_OAUTH2trustedHostsarray
SubTypestring
usernamestring
verifyServerIdentitybooleanstring
Default
true