Email Trigger V2
Discover more about the Email Trigger V2 and how to use it on the Digibee Integration Platform.
Last updated
Was this helpful?
Discover more about the Email Trigger V2 and how to use it on the Digibee Integration Platform.
Last updated
Was this helpful?
Email Trigger V2 retrieves data from an email inbox and delivers it to the pipeline.
Take a look at the configuration parameters for the trigger. Parameters supported by are marked with (DB)
.
Account
N/A
String
The email address to be accessed. Required when the account type is OAuth 2.
N/A
String
Operation
Specifies the action to be performed by the trigger. Options: Mark as Read, Move to Another Folder, and Delete. See details in the Operations section.
Mark as Read
String
Hostname
IMAP server hostname (for example, imap.uol.com
).
imap.gmail.com
String
Port
Port number for the IMAP connection.
993
Integer
Email Folder
Name of the folder/inbox that the trigger will read (for example, inbox
). This folder must not contain more than 100 messages (read or unread).
inbox
String
Destination Email Folder
Defines the folder where messages should be moved. This field is displayed only when Move to Another Folder is selected in the Operation parameter.
N/A
String
Maximum Timeout
Maximum processing time (in milliseconds) before the pipeline returns a response. Limit: 900000
.
30000
Integer
Allow Redelivery Of Messages
If enabled, allows messages to be redelivered if the Pipeline Engine fails.
False
Boolean
Documentation
Section for documenting any necessary information about the connector configuration and business rules.
N/A
String
Mark as Read: Marks the message as read after processing.
Move to Another Folder: Moves the processed message to a specified folder. The Destination Email Folder field is required for this option.
Delete: Deletes the message after processing.
If the received email contains attachments, they will be downloaded and stored in the pipeline's execution directory. The attachment names will be listed in the attachments
property as an array of strings.
If two attachments have the same name, a unique identifier is added to differentiate them
Example
If an email contains two attachments named file.csv
, the attachments
property will be:
The identifier varies with each execution.
Follow the steps below to configure and use the trigger:
Open the trigger settings and select the email-v2 type.
Fill in the configuration fields as needed. For this example, choose Mark as Read in the Operation field.
Click Confirm.
Once triggered, the pipeline will receive a payload similar to this:
Payload fields
textMessage: Plain text content of the email.
htmlMessage: HTML-formatted content of the email.
attachments: List of attachment filenames.
subject: Email subject.
from: Sender's email address.
to: Recipient's email address.
cc: Recipients in carbon copy.
bcc: Recipients in blind carbon copy.
replyTo: Email address for replies.
sentDate: Timestamp when the email was sent.
receivedDate: Timestamp when the email was received.
Defines the account type used by the trigger. Supported types: .
When using Gmail as the IMAP server, you must enable access for less secure apps. Refer to for details.
Continue .
Deploy the pipeline. Learn .