How to set content type to HTML "text/html" when using sendMail in IMailer service while using RTC extensions
![]()
I have written custom code using RTC extensions to send emails for different scenarios in my defect workflow.
I want to use the IMailer service sendmail() to do this. Currently I am using native javax mail api to do this.
a) I'm sending emails with custom HTML content.
b) I'm able to use sendMail() of IMailerservice to sendemails also. E.g sendmail line :
MymailerService.sendMail(sender, toEmail, newsubject, contentStr, "");
I'm having trouble in setting the contentType to HTMl when using sendMail.
any suggestions / help is highly appreciated.
Thank you
|