The latest version for DAS is WSO2 Data Analytics Server 3.1.0. View documentation for the latest release.
WSO2 Data Analytics Server is succeeded by WSO2 Stream Processor. To view the latest documentation for WSO2 SP, see WSO2 Stream Processor Documentation.

All docs This doc
Skip to end of metadata
Go to start of metadata


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.

    <adapterConfig type="email">
        <property key="mail.smtp.from">[email protected]</property>
        <property key="mail.smtp.user">abcd</property>
        <property key="mail.smtp.password">xxxx</property>
        <property key=""></property>
        <property key="mail.smtp.port">587</property>
        <property key="mail.smtp.starttls.enable">true</property>
        <property key="mail.smtp.auth">true</property>
        <!-- Thread Pool Related Properties -->
        <property key="maxThread">100</property>
        <property key="keepAliveTimeInMillis">20000</property>
        <property key="jobQueueSize">10000</property>

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 emailPublisher to 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.

  1. 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.
  2. In the Tools tab, click Event Simulator to open the Event Simulator page. In the Event Stream Name field, select Then click Play for the event.csv file in the Send multiple events section to send events.

Events received by the email receiver are logged as follows.

  • No labels