Email V2
Discover more about the Email V2 connector and how to use it on the Digibee Integration Platform.
The Email V2 connector enables you to send simple emails in HTML format, with or without attachments.
Parameters
Configure the connector using the parameters below. Fields that support Double Braces expressions are marked in the Supports DB column.
Alias
Name (alias) for this connector’s output, allowing you to reference it later in the flow using Double Braces expressions.
String
✅
email-v2-1
—
Account Type
Type of account used for authentication. Supported: Azure Key and Basic.
String
❌
Basic
—
Use Dynamic Account
If enabled, the connector uses the account dynamically via the Store Account connector; otherwise, it uses the account statically as configured in Accounts on the Platform.
Boolean
❌
false
—
Scoped
If enabled, isolates the stored account from other sub-processes. Not supported for accounts used in headers or body. To learn more, read the Dynamic Accounts documentation.
Boolean
❌
false
Use Dynamic Account is enabled
Account Name
Name of the account defined in the Store Account connector.
String
✅
N/A
Use Dynamic Account is enabled
Account
Account used to authenticate with the email server. Required if the service requires authentication. Must be an Azure Key or Basic account type, configured in Accounts on the Platform.
String
❌
N/A
Use Dynamic Account is disabled
SMTP Host
SMTP server host. Example: smtp.gmail.com
String
✅
smtp.gmail.com
—
SMTP Port
SMTP server port. Commonly 587, but may vary.
Integer
✅
587
—
From
Sender's email address.
String
✅
N/A
—
To
Recipient email address(es), separated by commas.
String
✅
N/A
—
CC
CC recipient(s), separated by commas.
String
✅
N/A
—
BCC
BCC recipient(s), separated by commas.
String
✅
N/A
—
Subject
Email subject line.
String
✅
N/A
—
Charset
Character set for the email body.
String
UTF-8
—
Content
Email body. Supports Freemarker templates for dynamic HTML.
String
✅
N/A
—
Custom Attachments Specification
Enables raw attachment input and hides the form-based attachment field.
Boolean
❌
false
—
Attachments
Email attachments. Specified via form or raw array.
Array of objects
❌
N/A
Custom Attachments Specification is enabled
Authenticated
Enable if SMTP authentication is required.
Boolean
❌
true
—
Is Over TLS
Enable to send the message over TLS.
Boolean
❌
true
—
Is Over SSL
Enable to send the message over SSL.
Boolean
❌
false
Is Over TLS is disabled
Socket Port
Required if SSL is enabled. Specifies the port used.
Integer
✅
N/A
Is Over SSL is enabled
Force TLSv1.2
Forces TLS 1.2 for secure email server connections.
Boolean
❌
false
—
Fail On Error
If enabled, interrupts the pipeline execution when an error occurs. If disabled, execution continues, but the "success" property will be set to false.
Boolean
❌
fals
—
To embed images in the email body, use the prefix cid: followed by the image name in the Attachments parameter. Example: <img src="cid:image.png" />
Documentation
Optional field to describe the connector configuration and any relevant business rules.
String
❌
N/A
Message Flow
Input
No specific input is required unless a Double Braces expression is used in any field.
Output
The connector returns a JSON object like the one below:
Field explanations:
from: Sender emailto: Recipientscc: CC recipientsbcc: BCC recipientssubject: Email subjectcontent: Email body (truncated if over 256 characters)charset: Character encoding usedsuccess: Indicates if the message was sent successfullyattachments: List of attachments
Files are handled securely within a temporary directory exclusive to the pipeline.
Learn more about Messages processing in the Digibee Integration Platform.
Email V2 in action
Authentication
Email V2 supports the following authentication methods:
Basic
Use a Basic account where the username is the sender’s email and the password is the corresponding email password.
OAuth 2
Currently supported only for Microsoft-based (Outlook) email accounts.
To configure:
Set the From field with the sender's email address.
Choose an Azure Key that contains the necessary credentials.
Internally, the connector uses client-id, client-secret, and tenant-id to generate a token, which is used along with the sender email to authenticate with the SMTP server.
Example: Email with attachments and inline image (RAW mode)
Configuration:
SMTP Host: smtp.gmail.com
SMTP Port: 587
From: email@gmail.com (the same email configured in the Account parameter)
Subject: Hello
Content:
Authenticated: true
Is Over TLS: true
Attachment As Raw: true
Attachments:
Output:
Dynamic email example using Double Braces expressions
You can use Double Braces expressions to insert variables dynamically into your email configuration.
In the example below, we first configured the JSON Generator (Mock) with the following data:
JSON data:
Next, we configured the Email V2 connector using Double Braces expressions to reference these values:
SMTP Host:
{{ message.host }}SMTP Port:
{{ message.port }}From:
{{ message.sender }}To:
{{ message.recipient }}CC:
{{ message.recipient_cc }}BCC:
{{ message.recipient_bcc }}Subject:
{{ CONCAT("Invoice ", FORMATDATE(NOW(), "timestamp", "MMMM yyyy", null, "UTC", "pt-BR", "GMT-3")) }}Charset:
UTF-8: Eight-bit Unicode (or UCS) Transformation FormatContent:
Technology
The connector uses Freemarker for dynamic content generation.
Last updated
Was this helpful?