Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //sample piece of code
- String bodyText = "<html>"
- + "<body style ="font-family: Calibri; font-size:11pt; background-color:white ">"
- + "<table style ="border:1px solid black;background-color:#DBE5F1;width:100%">"
- + "<tr style = "background-color:#DBE5F1 ;text-align-left; font-size:11pt">"
- + "<br>"
- + "  Hi All,"
- + "</br>"
- + "<br>"
- + statusLine
- + "</br>"
- + " "
- +"<br>"
- + "</tr>"
- + "<td style = "text-align:right;width:10%;border-right:1px solid black">"
- + caseCreated
- + "</td>"
- + "<td style = "width:10%;border-right:1px solid black;text-align:right">"
- + Failure
- + "</td>"
- +"</html>";
- //and for composing the mail message
- message.setContent(bodyText, "text/html");
Add Comment
Please, Sign In to add comment