Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Email event receiver is an internal event receiver that comes with WSO2 products by default. You can configure it with  XML, text, and JSON input mapping types.

...

Adapter property
Description
Configuration file propertyExample

Receiving Mail Address

A valid mail address from which this service should fetch incoming mails.

transport.mail.Address
receiver@gmail.com

User Name

Username of the receiver email account.
mail.protocol.user
test-user

Password

Password of the receiver email account.

mail.protocol.password
test-password
SubjectOnly the mails with this subject mentioned will be processed. (The mail should be in plain text format.)
email.in.subject
Email Input Event Adapter Test
Mail Protocol HostHost address of the mail receiver.
mail.protocol.host
pop.gmail.com/ imap.gmail.com
Mail Protocol PortPort of the mail receiver.
mail.protocol.port
995/993
Mail ProtocolThe mail protocol to be used to receive messages. The default value is imap. For imap, make sure it is enabled in your email account settings.
transport.mail.Protocol
pop3/imap
Poll Interval (in seconds)A positive integer which denotes the time limit, in which the product needs to check for new mails.
transport.PollInterval
10

...

Related samples

For more information on Email vent email event receiver type, see the following sample in WSO2 CEP Documentation.