Email event adapter is an internal event adaper that comes with WSO2 products by default. It can be configured with XML, text, and JSON input mapping types.
...
- Log in to product's management console, and click Configure.
- Click Input Event Adaptors in the Event Processor Configs menu, and then click Add Input Event Adaptor.
Enter details as shown in the below example.
Properties of the above configuration are described below.Property Description Event Adaptor Name Name of the input event adapter Event Adaptor Type Type of the input event adapter Receiving Mail Address Mail address, where the product used to retrieve the mails Receiving Mail Protocol Can be either POP or IMAP (If you select IMAP, make sure it is enabled in your email account settings) Poll Interval The time limit, in which the product needs to check for new mails Receiving Mail Protocol Host: pop.gmail.com for POP, and imap.gmail.com for IMAP Receiving Mail Protocol Port 995 for POP, and 993 for IMAP User Name Username of the email account Password Username of the email account Receiving Mail Protocol Port SocketFactory Class Class of the receiving mail protocol port Receiving Mail Protocol SocketFactory FallBack To enable or disable fallback of the receiving mail protocol class - Click Add Event Adaptor.
...
The configured input event adapters are used in event builders. With input event adapter message properties, event builders are able to extract data from the incoming events to build the event streams. Following are the specific message properties of the input email event adapter.
The message properties of the input email Message properties specific to input event adapters of the
email
type can be configured as follows.- Log into the BAM Management Console. For detailed instructions, see Running the Product.
- In the Main tab, click Event Streams to open the Available Event Streams page.
- Click the Inflows link of the event stream to which the relevant input event adapter is connected. As a result, Event In-Flows (<Input_Event_Adapter_Name>)opens.
Click on the relevant event builder name to open the Event Builder Details page.
The message properties of anemail
input event adapter are described below. Change the property values as required.
...
Property Description Email Service Name For an email to be processed through this event builder, the subject must be SOAPAction:urn:{Email Service Name}
.Input Mapping Type The incoming event type to be mapped.