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
<DAS_HOME>/repository/conf/output-event-adapters.xml file as required to send events to the email client.
Building the sample
Start the WSO2 DAS 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
<DAS_HOME>/samples/cep/artifacts/0064/eventsimulatorfiles/events.csv file to the
emailPublisher endpoint. Follow the steps below to execute the sample.
- In the DAS Management Console, click to Main tab => Publishers to open the Available Event Publishers page. Then click Edit for the existing
emailPublisher, and change email property for receiving mail address as shown below.
- In the Tools tab, click Event Simulator to open the Event Simulator page. In the Event Stream Name field, select
org.wso2.event.sensor.stream:1.0.0. Then click Play for the
event.csvfile in the Send multiple events section to send events.
Events received by the