function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Surendra nuneSurendra nune 

How do we send multipart message from salesforce?


Is there any sample code to send multipart message from salesforce
Hanumantha Rao MuddanaHanumantha Rao Muddana
You should able to sen both plain tex and HTML messages. Based on the Email client capability respective message will be display.
Use something like below in your email programme:
mail.setPlainTextBody('This is a multipart test message');
mail.setHTMLBody('<html><head/><body><h1> This is multipart HTML message</h1></body></html>');

Hope this helps :)