Links

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.

Messages flow

Input

The component waits for a message in the following format:
{
params: {
// Template body replacement parameters
"paramA":"valueA",
"paramB":"valueB",
...
"paramN":"valueN"
}
}

Output

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.
To read a tutorial on how to use the Email V1 component, click here.