Imap/Smtp Connection Activity
The Imap/Smtp Connection activity enables the establishment of secure connections to mail servers for both incoming and outgoing communications. It facilitates the retrieval of emails via the Internet Message Access Protocol (IMAP) and the transmission of messages through the Simple Mail Transfer Protocol (SMTP).
| Field | Description | Requirement |
|---|---|---|
| Configuration name | Specifies the name of an existing connection to be reused in other mail components. | Optional |
| Connection name | Defines the unique reference name for the mail connection being established. | Required |
| Imap host | The server address for the IMAP protocol. | Optional |
| Imap port | The port number used for the IMAP server connection. | Optional |
| Imap user | The username or email address for IMAP authentication. | Optional |
| Imap password | The password associated with the IMAP user account. | Optional |
| Imap ssl | Determines if an SSL certificate is used for the IMAP connection. | Optional |
| Imap tls enabled | Specifies if TLS is enabled for the IMAP connection. | Optional |
| Imap tls required | Indicates if a TLS certificate is mandatory for the IMAP connection. | Optional |
| Smtp host | The server address for the SMTP protocol. | Optional |
| Smtp port | The port number used for the SMTP server connection. | Optional |
| Smtp user | The username or email address for SMTP authentication. | Optional |
| Smtp password | The password associated with the SMTP user account. | Optional |
| Smtp ssl | Determines if an SSL certificate is used for the SMTP connection. | Optional |
| Smtp tls enabled | Specifies if TLS is enabled for the SMTP connection. | Optional |
| Smtp tls required | Indicates if a TLS certificate is mandatory for the SMTP connection. | Optional |
| Test connection | A functional trigger to verify the validity of the provided credentials and server settings. | Optional |
Action Types & Examples
IMAP Server Configuration
- Format: string
- Example Result: "imap.gmail.com"
IMAP Port Assignment
- Format: digit
- Example Result: "993"
SMTP Server Configuration
- Format: string
- Example Result: "smtp.gmail.com"
SMTP Port Assignment
- Format: digit
- Example Result: "587"
SSL/TLS Security Toggle
- Format: boolean
- Example Result: "true"
Implementation Examples
Field Setup - Connection name: "mailConnection" - Imap host: "imap.gmail.com" - Imap port: "993" - Imap user: "john.doe@gmail.com" - Imap password: "JohnDoe123"
Execution Parameters - Smtp host: "smtp.gmail.com" - Smtp port: "587" - Smtp ssl: "false" - Smtp tls enabled: "true" - Smtp tls required: "true"
Technical Notes
If the "Configuration name" field is populated, the individual IMAP and SMTP parameters are not required. However, if the "Configuration name" is left blank, at least one protocol (IMAP or SMTP) must be fully configured to establish a valid connection. For Gmail and other major providers, specific port numbers like 993 (IMAP) and 587 (SMTP) are typically required.