SMTP Valve
Delivers a mail-message.
Prerequisites
Configuration
Name
Description
Default value
Mandatory
Expanded
//Example when sending to 1 to-address.
{
"name": "SendMail",
"enabled": true,
"config": {
"smtp_destination": "default",
"subject_parameter": "My Subject",
"message_template": "C:\\Windows\\Templates\\mail_template.txt",
"mail_to": "${item.mail}",
"mail_from": "[email protected]",
"mail_cc": "[email protected]",
"remove_prefixes": ["SMTP:","sip:"]
}
}
//Example when sending to 1 to-address and multiple
//cc-adresses stored as multi value.
{
"name": "SendMail",
"enabled": true,
"config": {
"smtp_destination": "default",
"subject_parameter": "My Subject",
"message_template": "C:\\Windows\\Templates\\mail_template.txt",
"mail_to": "${item.mail}",
"mail_from": "[email protected]",
"mail_cc": "@json:${item.cc.all}",
"remove_prefixes": ["SMTP:","sip:"]
}
}
//Example when sending to multiple hard coded to-addresses.
{
"name": "SendMail",
"enabled": true,
"config": {
"smtp_destination": "default",
"subject_parameter": "My Subject",
"message_template": "C:\\Windows\\Templates\\mail_template.txt",
"mail_to": "[email protected], [email protected]",
"mail_from": "[email protected]",
"remove_prefixes": ["SMTP:","sip:"]
}
}
Message Template example
<html>
<body>
Your one time password is <b>{{item.generated_otp_value}}</b>
</body>
</html>