Skip to main content

Email

Send an email from an action. Delivery is over SMTP — configure it with an smtp block, then set from, to (plus optional cc, bcc, reply_to), subject, and an html or text body.

actions:
- name: SendWelcome
email:
smtp:
server: smtp.example.com
port: 587
user: a|secret::smtp_user|
pass: a|secret::smtp_pass|
from: [email protected]
to: a|body::email|
subject: Welcome
html: "<h1>Welcome aboard</h1>"

Email

FieldTypeDescription
aws_sesboolean (nullable)
smtpEmailSmtp (nullable)
fromstringRequired.
reply_tostring (nullable)
tostringRequired.
ccstring (nullable)
bccstring (nullable)
subjectstringRequired.
headerstring (nullable)
htmlstring (nullable)
textstring (nullable)
paramsArray<string> (nullable)
success_messagestring (nullable)
error_messagestring (nullable)

EmailSmtp

FieldTypeDescription
userstringRequired.
passstringRequired.
serverstringRequired.
portnumber (nullable)
tlsboolean (nullable)