IMPORTANT: This documentation has been discontinued. Read the updated Email V1 documentation on our new documentation portal.

E-mail 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.

example@examplo.com.br
  • 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 E-mail V1, you must create an SMTP-type account.


Messages flow


Input

The component waits for a message in the following format:

{
to : ["abc1@gmail.com","abc2@gmail.com"]
cc : ["abc1@gmail.com","abc2@gmail.com"],
bcc : ["abc1@gmail.com","abc2@gmail.com"],
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 E-mail V1 component, click here.

Did this answer your question?