Setting HTML message body |
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"); |