E-Mail Setup Guide
This document explains how to setup the mail transport sender and listener
as required by the samples.
Setting up Mail Transport Sender
To enable the mail transport sender for samples, you need to uncomment
the mail transport sender configuration in the
repository/conf/axis2.xml. Uncomment the mail transport sender sample
configuration and make sure it points to a valid SMTP configuration for
any actual scenarios.
<transportSender name="mailto" class="org.apache.synapse.transport.mail.MailTransportSender">
<parameter name="mail.smtp.host">smtp.gmail.com</parameter>
<parameter name="mail.smtp.port">587</parameter>
<parameter name="mail.smtp.starttls.enable">true</parameter>
<parameter name="mail.smtp.auth">true</parameter>
<parameter name="mail.smtp.user">synapse.demo.mail1</parameter>
<parameter name="mail.smtp.password">mailpassword</parameter>
<parameter name="mail.smtp.from">synapse.demo.mail1@gmail.com</parameter>
</transportSender>
Setting up Mail Transport Receiver
To enable the mail transport receiver for samples, you need to
uncomment the mail transport receiver configuration in the
configuration. Note: you need to provide correct parameters for a valid
mail account at service level.
<transportReceiver name="mailto" class="org.apache.axis2.transport.mail.MailTransportListener"></transportReceiver>