Skip to main content

Email Actions

The Blink platform enables you to send e-mails both using an SMTP server and on behalf of Blink and get e-mails using IMAP server.

The Blink platform enables you to trigger a workflow on every new email message using an IMAP server.

SMTP Email

Creating an SMTP Email Server connection

To create the connection you need:

  • A username
  • A password
  • An SMTP host
  • An SMTP port

Creating your connection

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the SMTP Email Server icon. A dialog box with name of the connection and connection methods appear.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Select SMTP Email Server as the method to make the connection.
  5. Fill in the parameters:
    • A username
    • The password
    • The SMTP host
    • The SMTP port
  6. (Optional) Click Test Connection to test it.
  7. Click Create connection. The new connection appears on the Connections page.

Actions

Send Email via an SMTP Server

Send an e-mail using an SMTP server.

ParameterDescription
FromThe email address used to deliver the message. This address should be a verified sender in your SMTP server.
ToList of addresses - each one on a different line - to send the email to.
SubjectThis is the subject of the mail.
ContentThe body of the mail, write up your mail to send as you wish.
Sender Display NameThe sender's name to be displayed to the recipient (if not specified, defaults to the email's domain name).
Content TypeRepresentation of the Content-Type in the email body content.
Custom HeadersThe custom headers to add to the email. For Example: Header1:Value1 Header2:Value2 ...
Attachment NameThe name of the attachment.
Attachment FilesA comma-separated list of file identifiers for the attachment.
Attachment BodyThe body of the attachment.

IMAP Email

Creating an IMAP Email Server connection

To create the connection you need:

  • A username
  • A password
  • An IMAP host
  • An IMAP port

Creating your connection

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the IMAP Email Server icon. A dialog box with name of the connection and connection methods appear.
  3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
  4. Select IMAP Email Server as the method to make the connection.
  5. Fill in the parameters:
    • A username
    • The password
    • The IMAP host
    • The IMAP port
  6. (Optional) Click Test Connection to test it.
  7. Click Create connection. The new connection appears on the Connections page.

Actions

List Email Messages via IMAP

List email messages for specific email address.

ParameterDescription
Filter Since DateFilters emails sent from the specified date onward.
Include Seen EmailsWhen checked, all emails including those already seen will be displayed. If unchecked, only unseen email messages will be displayed.
LimitThe maximum number of email messages returned.

Triggers

On New Message

Triggers a workflow on every new message.

Sample Event
{
"date": "2022-12-20T11:22:45+02:00",
"subject": "test",
"from": [
{
"PersonalName": "John Doe",
"AtDomainList": "",
"MailboxName": "John",
"HostName": "john@test.com"
}
],
"sender": [
{
"PersonalName": "John Doe",
"AtDomainList": "",
"MailboxName": "John",
"HostName": "john@test.com"
}
],
"reply_to": [
{
"PersonalName": "John Doe",
"AtDomainList": "",
"MailboxName": "John",
"HostName": "john@test.com"
}
],
"to": [
{
"PersonalName": "Bar Foo",
"AtDomainList": "",
"MailboxName": "foo",
"HostName": "foo@test.com"
}
],
"cc": null,
"bcc": null,
"in_reply_to": "",
"message_id": "<CAGRyKpNGHkvieaAoAPPUP=wSshQdSzaavp1_qW_ieMGAMaS88Q@mail.gmail.com>",
"body": "this is a test body"
}

Actions

Send an e-mail on behalf of Blink.

ParameterDescription
ToEnter the receivers email address.
SubjectThis is the subject of the mail.
ContentThe body of the mail, write up your mail to send as you wish.
Content TypeRepresentation of the Content-Type in the email body content.
Custom HeadersThe custom headers to add to the email. For Example: Header1:Value1 Header2:Value2 ...
Attachment NameThe name of the attachment.
Attachment FilesA comma-separated list of file identifiers for the attachment.
Attachment BodyThe body of the attachment.

Send Email Via Gmail

Create the connection by using one of the following methods:

Ensure the relevant APIs from the following list are enabled:

Creating your connection

  1. In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
  2. Select the Gmail icon. A dialog box with name of the connection and connection methods appear.
  3. Edit the name of the connection. At a later stage you cannot edit the name. (Optional)
  4. Click Gmail to authenticate using OAuth.
  5. Sign in using your credentials.

Parameters

ParameterDescription
Attachment FilesA comma-separated list of file identifiers for the attachment.
BccA comma-separated list of emails for BCC recipients of the message.
CCA comma-separated list of email for CC recipients of the message.
ContentThe body of the mail.
From User IDThe email of the user from which to send the email.
The special value 'me' can be used if the connection is OAuth to identify as the authenticated user.
SubjectThis is the subject of the mail.
ToA comma-separated list of email recipients for the message.

Example Output

{
"id": "1879ef5cc8e70395",
"threadId": "1879ef5cc8e70395",
"labelIds": ["UNREAD", "SENT", "INBOX"]
}