How to use IMailerService.sendRawMail(InputStream mailMessage) method to send a email notification to multiple recipients as specified in TO, CC and BCC lists in custom follow-up plugin
![]() Hi,
I want to send a email notification to multiple recipients as specified in TO, CC and BCC lists using IMailerService.sendRawMail(InputStream mailMessage) method in custom follow-up plugin.
Anyone help me on this, how to use it and prepare InputStream object to set subject, body message and To, CC and BCC list.
I am currently using version 6.0.5
Thank you. |
One answer
![]()
Ralph Schoon (62.3k●3●36●43)
| answered Apr 27 '19, 2:01 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Read https://rsjazz.wordpress.com/2015/09/30/learning-to-fly-getting-started-with-the-rtc-java-apis/ , follow the extensions workshop and search the SDK for the code that it uses. Comments Thanks Ralph for quick response.
I already developed follow-up action as per my requirements but i am getting below exception which i am not able find out what is missing and root cause for this issue.
Below is the stack trace, please help me on this, what is the meaning of this exception and how to fix this
javax.mail.MessagingException: CRJAZ1611E The message could not be sent because the Jazz Team Server repository sent an exception. (com.ibm.team.repository.service.compatibility.util.http.CrossServerHttpClient$RestCommunicationException: Bad Request)
at com.ibm.team.repository.service.compatibility.internal.mailer.MailerService.createMessagingException(MailerService.java:146)
at com.ibm.team.repository.service.compatibility.internal.mailer.MailerService.sendMail(MailerService.java:264)
Thanks once again.
|