You can send an email notification once the model generation is completed in WSO2 ML. The email which will be automatically sent to the defined recipient(s), will include a link to the page of the generated model. Email template for each notification type is specified in the
<ML_HOME>/repository/conf/email/ml-email-templates.xml file. The configurations you require to enable sending these email notifications are explained below.
Setting the adapter configurations
Edit the following adapter configuration properties defined in the
<ML_HOME>/repository/conf/output-event-adapters.xml file to set the adapter configurations as shown below.
|E mail address of the email@example.com|
|User ID of the sender's email address||sender|
|Password of the sender's email account||sender-password|
The values of the
mail.smtp.port properties in the below example configuration are set for Gmail. However, if you want to use other email service providers, you need to change them accordingly. For information on the properties of the below configurations, go to JavaMail API documentation.
Setting the email receivers
You can specify one or more recipients to send all the email notifications related to model building completion (success/failure). Enter the email addresses of the receivers separated by commas for the value of the the
<EmailNotificationEndpoint> property in the
<ML_HOME>/repository/conf/machine-learner.xml file as shown in the below example.