The MailTo transport supports sending messages (E-Mail) over SMTP and receiving messages over POP3 or IMAP. This transport implementation is available as a module of the WS-Commons Transports project.
...
To enable the MailTo transport sender Anchor enableMailTo enableMailTo
Edit the <EI_HOME>/conf/axis2/axis2.xml
file and uncomment the MailTo sender as follows:
Code Block | ||
---|---|---|
| ||
<transportSender name="mailto" class="org.apache.axis2.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.0</parameter> <parameter name="mail.smtp.password">mailpassword</parameter> <parameter name="mail.smtp.from">synapse.demo.0@gmail.com</parameter> </transportSender> |
Note |
---|
Be sure to import the SSL certificate of your SMTP host server (specified by the When importing the certificate, be sure to use a certificate alias that is relevant to your server. For example, if you are using Gmail, use 'smtp.gmail.com' as the certificate alias. See the instructions on importing certificates to a keystore. |
Info | ||||
---|---|---|---|---|
| ||||
If you want to use multiple mail boxes to send emails, you can have multiple MailTo senders in the For example, if you edit the
You can use the
|
...