Email V1 (Deprecated)
Know the component and how to use it.
Email V1 invokes the SMTP server in a pipeline.
Take a look at the configuration parameter of the component:
- Account: account to be used by the component.
- From: set the sender email to be sent by the component.
- Subject: sets the subject to be sent by the component.
Example: ${subject}
- Content Type: sets the Content Type and encoding.
text/html; charset=UTF-8
- Template: template body to be used to prepare email templates.
<html><body><strong>${firstname} ${lastname}</strong></body></html>
IMPORTANT: to use Email V1, you must create a SMTP-type account.
The component waits for a message in the following format:
{
to : ["[email protected]","[email protected]"]
cc : ["[email protected]","[email protected]"],
bcc : ["[email protected]","[email protected]"],
params: {
// Template body replacement parameters
"paramA":"valueA",
"paramB":"valueB",
...
"paramN":"valueN"
}
}
When there's an error, this is the message shown in the component output:
{
timestamp: 1503608693745,
code: 999,
message: "error message"
}
Note that, for some errors, body and header are unavailable.
Last modified 2mo ago