Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RAM: How to send an email from within a custom policy

Hello,

Is there a way to send an email from within a custom RAM policy?

I need to send an email to certain users as soon as a custom policy passes.

Thanks!

0 votes



One answer

Permanent link
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.
try {                        
Letter.Recipients recipients =
    this.getNotifyList(shouldEmailcollaborators, shouldEmailManagers, shouldEmailOwners, shouldEmailPendingReviewers, emailTo);                      

sendMail(recipients, subject, body);     
             
} catch (AssetNotFoundException e) {










0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941
× 35
× 6

Question asked: Apr 29 '13, 2:47 a.m.

Question was seen: 5,001 times

Last updated: Apr 29 '13, 9:02 a.m.

Confirmation Cancel Confirm