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.
- Send Email via Blink
- Send Email via an SMTP Server
- List Email Messages via IMAP
- Send an Email via Gmail
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
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the SMTP Email Server icon. A dialog box with name of the connection and connection methods appear.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Select SMTP Email Server as the method to make the connection.
- Fill in the parameters:
- A username
- The password
- The SMTP host
- The SMTP port
- (Optional) Click Test Connection to test it.
- 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.
Parameter | Description |
---|---|
From | The email address used to deliver the message. This address should be a verified sender in your SMTP server. |
To | List of addresses - each one on a different line - to send the email to. |
Subject | This is the subject of the mail. |
Content | The body of the mail, write up your mail to send as you wish. |
Sender Display Name | The sender's name to be displayed to the recipient (if not specified, defaults to the email's domain name). |
Content Type | Representation of the Content-Type in the email body content. |
Custom Headers | The custom headers to add to the email. For Example: Header1:Value1 Header2:Value2 ... |
Attachment Name | The name of the attachment. |
Attachment Files | A comma-separated list of file identifiers for the attachment. |
Attachment Body | The 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
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the IMAP Email Server icon. A dialog box with name of the connection and connection methods appear.
- (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
- Select IMAP Email Server as the method to make the connection.
- Fill in the parameters:
- A username
- The password
- The IMAP host
- The IMAP port
- (Optional) Click Test Connection to test it.
- Click Create connection. The new connection appears on the Connections page.
Actions
List Email Messages via IMAP
List email messages for specific email address.
Parameter | Description |
---|---|
Filter Since Date | Filters emails sent from the specified date onward. |
Include Seen Emails | When checked, all emails including those already seen will be displayed. If unchecked, only unseen email messages will be displayed. |
Limit | The 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"
}
Blink Email
Actions
Send Email via Blink
Send an e-mail on behalf of Blink.
Parameter | Description |
---|---|
To | Enter the receivers email address. |
Subject | This is the subject of the mail. |
Content | The body of the mail, write up your mail to send as you wish. |
Content Type | Representation of the Content-Type in the email body content. |
Custom Headers | The custom headers to add to the email. For Example: Header1:Value1 Header2:Value2 ... |
Attachment Name | The name of the attachment. |
Attachment Files | A comma-separated list of file identifiers for the attachment. |
Attachment Body | The 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
- In the Blink platform, navigate to the Connections page > Add connection. A New Connection dialog box opens displaying icons of external service providers available.
- Select the Gmail icon. A dialog box with name of the connection and connection methods appear.
- Edit the name of the connection. At a later stage you cannot edit the name. (Optional)
- Click Gmail to authenticate using OAuth.
- Sign in using your credentials.
Parameters
Parameter | Description |
---|---|
Attachment Files | A comma-separated list of file identifiers for the attachment. |
Bcc | A comma-separated list of emails for BCC recipients of the message. |
CC | A comma-separated list of email for CC recipients of the message. |
Content | The body of the mail. |
From User ID | The 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. |
Subject | This is the subject of the mail. |
To | A comma-separated list of email recipients for the message. |
Example Output
{
"id": "1879ef5cc8e70395",
"threadId": "1879ef5cc8e70395",
"labelIds": ["UNREAD", "SENT", "INBOX"]
}