Adding the following mail transport configuration to the <
GREG_HOME>/repository/conf/axis2/axis2.xml
file, to configure WSO2 Governance Registry to send notifications via email.
<transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="mail.smtp.from">synapse.demo.1@gmail.com</parameter> <parameter name="mail.smtp.user">synapse.demo.1</parameter> <parameter name="mail.smtp.password">mailpassword</parameter> <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> </transportSender>
This sends each email to the corresponding delivery address you specify in the subscription using synapse.demo.1@gmail.com
as the sender. This configuration is applicable for email addresses you obtain from gmail.com
. Similarly, you can use an email address of any other sender, for which the email service provider grants access to a SMTP Server.