E-Mail Listener

E-Mail Listener

E-Mail Listener

The Mail Listener is used to read from an SMTP destination.

This listener is a Message-driven listener. This means that the arrival of a message on the destination queue or topic, will activate the consumer. The listeners output is a ConnectMessage.

In the table below, you will find an explanation of these properties. All attributes with a ‘*’ are mandatory.

Attribute

Description

Name*

By default, we fill this out with the technical ‘tag’, followed by a serial number. Changing the name is optional.

Enabled

Check this box if you want this consumer to be enabled.

Consumer Autostart

Consumer will be started at startup of the interface.

Should Delete Message Set this value on true when you want to delete the message from the emailbox.
Should Mark Messages As Read

Set this value on true when you want to set the message as Marked as read. The message will remain in your
emailbox.

Protocol Select one of the next protocols:
  • POP3
  • IMAP
  • POP3S
  • IMAPS
POP3 Port POP3 Port number.
IMAP Port IMAP Port number.
Store Host Mail server host.
Store MailBox Mailbox to read from. For instance Inbox.
Store Username Username of the selected mailbox.
Store Password Password of the user.
Mail Filter Expression Filter expression to filter mail you want out of the selected mail box.
Max Messages Maxiumum amount of messages to read at once.
Quartz Cron Expression

Definition of the interval this polling consumer will check for messages.
Format (sec) (min) (hour) (day) (month) (year).

Mail Debug Set this value to True to add debug information to the interfaces log.
Start TLS Set this value to True if you have to read messages securely.
Exclude Non Text Parts Set this value to True to exclude non text parts of the email.
Use Attachment Filename As ID Set this value to True to use attachments' original names as messagepart ids. Otherwise messageparts will be named msgprtX where X is an incremental number up to the number of attachments minus one.

Description

Description of the specific consumer. This is for documentation purposes.


Remember to trust the server's certificate in you truststore if using a secure connection.