Components
The Email connector sends emails using an SMTP email server.
Categories: Communication, Helpers
Type: email/v1
Connections
Version: 1
Basic Auth
Properties
| Name | Label | Type | Description | Required | 
|---|---|---|---|---|
| username | Username | STRING | true | |
| password | Password | STRING | true | 
Actions
Send
Name: send
Send an email to any address.
Properties
| Name | Label | Type | Description | Required | 
|---|---|---|---|---|
| port | Port | INTEGER | Defines the port to connect to the email server. | true | 
| from | From Email | STRING | From who to send the email. | true | 
| to | To Email | ARRAY Items[STRING] | Who to send the email to. | true | 
| cc | CC Email | ARRAY Items[STRING] | Who to CC on the email. | false | 
| bcc | BCC Email | ARRAY Items[STRING] | Who to BCC on the email. | false | 
| replyTo | Reply To | ARRAY Items[STRING] | When someone replies to this email, where should it go to? | false | 
| subject | Subject | STRING | Your email subject. | true | 
| content | Content | STRING | Your email content. Will be sent as a HTML email. | false | 
| attachments | Attachments | ARRAY Items[FILE_ENTRY] | A list of attachments to send with the email. | false | 
Example JSON Structure
{
  "label" : "Send",
  "name" : "send",
  "parameters" : {
    "port" : 1,
    "from" : "",
    "to" : [ "" ],
    "cc" : [ "" ],
    "bcc" : [ "" ],
    "replyTo" : [ "" ],
    "subject" : "",
    "content" : "",
    "attachments" : [ {
      "extension" : "",
      "mimeType" : "",
      "name" : "",
      "url" : ""
    } ]
  },
  "type" : "email/v1/send"
}Output
This action does not produce any output.
Get Mail
Name: get
Get emails from inbox.
Properties
| Name | Label | Type | Description | Required | 
|---|---|---|---|---|
| port | Port | INTEGER | Defines the port to connect to the email server. | true | 
| protocol | Protocol | STRING Optionsimap, pop3 | Protocol defines communication procedure. IMAP allows receiving emails. POP3 is older protocol for receiving emails. | true | 
| from | From Email | STRING | From who the email was sent. | true | 
| subject | Subject contains | STRING | Filters email messages where subject contains this keyword. Character matching is case insensitive. | true | 
Example JSON Structure
{
  "label" : "Get Mail",
  "name" : "get",
  "parameters" : {
    "port" : 1,
    "protocol" : "",
    "from" : "",
    "subject" : ""
  },
  "type" : "email/v1/get"
}Output
Type: ARRAY
Items Type: OBJECT
Properties
| Name | Type | Description | 
|---|---|---|
| cc | STRING | |
| content | STRING | |
| contentType | STRING | |
| from | STRING | |
| hasAttachments | BOOLEAN Optionstrue, false | |
| subject | STRING | 
Output Example
[ {
  "cc" : "",
  "content" : "",
  "contentType" : "",
  "from" : "",
  "hasAttachments" : false,
  "subject" : ""
} ]