Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Follow the steps below to configure WSO2 Governance Registry to send notifications via email.

Info

This sends each email to the corresponding delivery address present in the subscription using synapse.demo.1@gmail.com as the sender. This configuration is for an email address obtained from gmail.com. Similarly, you can use any other sender email address for which, the email service provider grants access to a SMTP Server.

  1. Add the following mail transport configuration to the <G-REG_HOME/repository/conf/axis2/axis2.xml file.

    Code Block
    <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>
  2. Update the following property in the < G-REG_HOME>/repository/conf/axis2/axis2.xml file.

    Code Block
    <transportReceiver name="mailto" class="org.apache.axis2.transport.mail.MailTransportListener"></transportReceiver>
Excerpt
hiddentrue

Information about configuring Registry to send e-mails.