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

How to get mail configuration information using java API

 Hello,

I am writing a custom extension to send email notification to team members based on value of file against attribute. Our users have demanded that some part of email body should be bold letters, I believe that RTC email API (IMailerService mailService = getService(IMailerService.class);) would not allow me to send email body in bold format. I have decided to use Java Email features to send email to users so that I can make email body in bold format,
To send email using java we need to email from and email to properties. I can get email address of team members but I want to get email configuration of CLM using server API (i.e. I want to get email address which is configured in CLM setup)
Can anyone guide me on how to get CLM email configuration details using RTC Server API.

My Investigation
IMailerService mailService = getService(IMailerService.class);
String address = mailService.getDefaultSender().getFrom().getAddress();
But if I use this method I get error - Unable to save work item. javax.mail.internet.InternetAddress.

0 votes


Be the first one to answer this question!

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,936
× 7,494
× 411

Question asked: Aug 21 '18, 10:10 a.m.

Question was seen: 2,128 times

Last updated: Aug 21 '18, 10:10 a.m.

Confirmation Cancel Confirm