<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- ~ Licensed to the Apache Software Foundation (ASF) under one ~ or more 
	contributor license agreements. See the NOTICE file ~ distributed with this 
	work for additional information ~ regarding copyright ownership. The ASF 
	licenses this file ~ to you under the Apache License, Version 2.0 (the ~ 
	"License"); you may not use this file except in compliance ~ with the License. 
	You may obtain a copy of the License at ~ ~ http://www.apache.org/licenses/LICENSE-2.0 
	~ ~ Unless required by applicable law or agreed to in writing, ~ software 
	distributed under the License is distributed on an ~ * "AS IS" BASIS, WITHOUT 
	WARRANTIES OR CONDITIONS OF ANY ~ KIND, either express or implied. See the 
	License for the ~ specific language governing permissions and limitations 
	~ under the License. -->

<document>
	<properties>
		<title>Apache Synapse - E-Mail Setup Guide</title>
	</properties>
	<body>
        <section name="E-Mail Setup Guide">
            <p>
                This document explains how to setup the mail transport sender and listener
                as required by the samples.
            </p>
        </section>
		<section name="Contents">
			<ul>
				<li>
					<a href="#mailTransportSender">Setting up Mail Transport Sender</a>
				</li>
				<li>
					<a href="#mailTransportReceiver">Setting up Mail Transport Receiver</a>
				</li>
			</ul>
		</section>
		<section name="Setting up Mail Transport Sender"
			id="mailTransportSender">
			<p>
			  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. 
			  <div class="xmlConf">&lt;transportSender name=&quot;mailto&quot; class=&quot;org.apache.synapse.transport.mail.MailTransportSender&quot;&gt;
        &lt;parameter name=&quot;mail.smtp.host&quot;&gt;smtp.gmail.com&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.port&quot;&gt;587&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.starttls.enable&quot;&gt;true&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.auth&quot;&gt;true&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.user&quot;&gt;synapse.demo.mail1&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.password&quot;&gt;mailpassword&lt;/parameter&gt;
        &lt;parameter name=&quot;mail.smtp.from&quot;&gt;synapse.demo.mail1@gmail.com&lt;/parameter&gt;
&lt;/transportSender&gt;</div>
			</p>
		</section>
		<section name="Setting up Mail Transport Receiver"
			id="mailTransportReceiver">
			<p>
		     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.
			</p>
			<div class="xmlConf">&lt;transportReceiver name=&quot;mailto&quot; class=&quot;org.apache.axis2.transport.mail.MailTransportListener&quot;&gt;&lt;/transportReceiver&gt;</div>
		</section>
	</body>
</document>
