RAM: How to send an email from within a custom policy
One answer
You can always extend the com.ibm.ram.repository.policy.SendEmailPolicy
The following is its main test() code - figure out who do you want to send to, and the sendMail() call.
It should be in the com.ibm.ram.repository.jar in the WEB-INF/lib of the war.
The following is its main test() code - figure out who do you want to send to, and the sendMail() call.
It should be in the com.ibm.ram.repository.jar in the WEB-INF/lib of the war.
try {
Letter.Recipients recipients =
this.getNotifyList(shouldEmailcollaborators, shouldEmailManagers, shouldEmailOwners, shouldEmailPendingReviewers, emailTo);
sendMail(recipients, subject, body);
} catch (AssetNotFoundException e) {