This article discusses how to use the Mail (IMAP) connector to send and receive emails using the IMAP protocol. Let’s see what it takes to get up and running with the Mail (IMAP) connector.
Get the example process used below from the Process Library here.
The Mail (IMAP) connector allows you to get and send emails via the IMAP protocol instead of POP. The IMAP protocol--and therefore the IMAP connector--supports additional interaction types when working with emails and may be preferred to POP especially when multiple devices or clients are involved. Many SMTP email servers support both protocols so you may be able to start using the IMAP connector without changes to your server.
For complete connector documentation, see the Mail (IMAP) connector.
The Internet Message Access Protocol (IMAP) can be used in place of the Post Office Protocol (POP). IMAP differs from other mail systems because messages are manipulated directly on the email server. As a result, you can access email from any device at any time, and folders and message status are synchronized.
Ability to send multiple attachments, leveraging the Document Cache component.
Supports transport security up to TLSv1.2 for sending email.
More document properties to dynamically set your operations.
When configuring the Mail (IMAP) connection, you configure one single connection. The single connection helps to avoid any potential issues with outgoing and incoming email on the server, and also simplifies setup because you only have to choose the valid connection for each operation.
The following image shows a sample Mail (IMAP) connection.
Steps
Use the Send operation to send messages to an SMTP mail server. This operation supports attachments through the use of the Document Cache. In this case, all of the related operation fields must be filled.
The following image shows the steps in the Send Message with Attachments Process.
Steps
Use the Receive operation to retrieve emails into the process. The connector now supports using complex query filters to select the emails for processing. When first creating the Operation component, click the Import button in the upper right, browse against the Cloud attachment, and complete the wizard to display the Filter options on the Operation component.
Note: By default, the operation returns unread emails from the inbox if "read" and "fromFolder" filters are not defined.
The Mail (IMAP) connector allows you to retrieve both the email message AND any attachments. When receiving emails, the email message body is sent into the process as a document but the email's related attachments are automatically added to a document cache, indexed by the connector's "Message ID" document property. This document property is associated with each message in the process and is used to retrieve the cached attachments for the given message.
The following image shows the steps in the Receive Messages with Attachments Process.
Steps
Use the Move operation to transfer emails from one folder to another on the mail server using the Message-ID. For example, you may want to move or "archive" a message on the mail server after successfully processing within Boomi Enterprise Platform.
The following image shows the steps in the Move Message to a Different Folder.
Steps