Home > database >  wso2 Enabling Notifications for User Operations
wso2 Enabling Notifications for User Operations

Time:10-21

we are trying to set Enabling Notifications for User Operations using following resource https://docs.wso2.com/display/IS540/Enabling Notifications for User Operation the document on wso2 site.

I done the changes required but still getting error template not found, so any one know in which format required for mail template.

Added this line to <PRODUCT_HOME>/repository/conf/identity/msg-mgt.properties

**module.name.1=email
email.subscription.1=userOperation
email.subscription.userOperation.template=/home/user/Desktop/johnsmith (If you are using windows machine the path would be C:\Users\Administrator\Desktop\johnsmith)
email.subscription.userOperation.salutation=Admin
email.subscription.userOperation.subject=User operation change information
email.subscription.userOperation.endpoint.1=privateMail
email.subscription.userOperation.endpoint.privateMail.address=receiver@gmail.com
email.subscription.userOperation.endpoint.privateMail.salutation=Admin private mail
email.subscription.userOperation.endpoint.privateMail.subject=User operation change information to private mail**

what kind of filetype or how to write template

CodePudding user response:

This will be the path to your email template. I added it as follows.

email.subscription.userOperation.template=/Users/tommy/wso2is-5.11.0/repository/template1.xml

Here I added the file as a XML but just added the template as follows.

Hi {salutation}

This is a test mail to your private mail. The operation that occurred was: {operation}

Also you can add a txt file.

  • Related