...
Info |
---|
By default the author of an asset will be notified of the asset lifecycle transitions once the configurations are enabled in the ES. |
Follow the instructions given below:
Create an email account for the ES asset lifecycle transition notification emails (e.g., no-reply@foo.com).
Navigate to the
<ES_HOME>/repository/conf/axis2/axis2.xml
file.Uncomment the
mailto
transportSender section and configure the ES email account.Code Block <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="mail.smtp.from">esmailsample@gmail.com</parameter> <parameter name="mail.smtp.user">esmailsample</parameter> <parameter name="mail.smtp.password">esMailTest</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>
Info Use the email address, username and password of the mail account you have set up, as the values for
{email-address}
,{username}
,{password}
respectively.Example:
Code Block <transportSender name="mailto" class="org.apache.axis2.transport.mail.MailTransportSender"> <parameter name="mail.smtp.from">foo@gmail.com</parameter> <parameter name="mail.smtp.user">foo</parameter> <parameter name="mail.smtp.password">$foo1234</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>
Replace
<phase name="MessageOut"/>
in the OutFlow phaseOrder type with the following configurations:Info The default email being sent includes HTML tags, therefore to support the HTML content the following configuration is required.
Code Block <phase name="MessageOut"> <handler name="EmailTransformHandler" class="org.wso2.carbon.store.notifications.handler.EmailTransformHandler"/> </phase>
...