This sample demonstrates how to publish outgoing text events via email transport. This sample does not do any processing on the outgoing event. Events are generated using an input event file and the event simulator.
Set up the prerequisites required for all samples.
Edit the mail transport sender configuration in
<CEP_HOME>/repository/conf/output-event-adapters.xml file as required to send events to email client.
Building the sample
Start the WSO2 CEP server with the sample configuration numbered 0064. For instructions, see Starting sample CEP configurations. This sample configuration creates the following.
- A stream named
- An event publisher named name
emailPublisherto log the received messages
Executing the sample
This builds the publishes the events in the
<CEP_HOME>/samples/cep/artifacts/0064/eventsimulatorfiles/events.csv file to the emailPublisher endpoint.
First go to the Event publishers and update existing emailPublisher and change email property for receiving mail address as shown below.
Then go to the event simulator and click play to send events contain in events.csv file
You view the receiver email should receive events as following screenshot.