Email V1 (Deprecated)

Know the component and how to use it.

The Email V1 is deprecated and no longer updated. Please refer to the document with the most recent version of the feature: Email V2.

Email V1 invokes the SMTP server in a pipeline. To use Email V1, you must create a SMTP-type account. Read the tutorial on how to use the Email V1 component.

Parameters

Take a look at the configuration options for the component. Parameters supported by Double Braces expressions are marked with (DB).

ParameterDescriptionDefault valueData type

Account

account to be used by the component

None

Any

From

set the sender email to be sent by the component

None

String

Subject

sets the subject to be sent by the component

None

String

Content Type

sets the Content Type and encoding

None

String

Template

template body to be used to prepare email templates

None

String

Parameters examples

From:

example@examplo.com.br

Subject:

Example: ${subject}

Content Type:

text/html; charset=UTF-8

Template:

<html><body><strong>${firstname} ${lastname}</strong></body></html>

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.

Last updated