Setting HTML message body

Top  Previous  Next

A majority of email clients today allow for display of HTML data.  You may embed HTML in your message body by setting the message body and then setting the Content-Type header for the message to text/html.

 

Example

 

message.setBody("<b>some HTML text</b>");

message.setContentType("text/html");





Home | Company | Products | Solutions | Purchase | Support | Services | Blog

© 2021 JSCAPE LLC