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
sumit pawarsumit pawar 

how to create below html body to set in mail?

 how to create below html body to set in mail? i got stuck in following issue...suggest on this..

Hi (contact name), >> contact name is dynamic.

Please check this out for (...) and (....) >> dynamic values.

Regards, ABC

Like set.htmlbody('hi' +contactname+ ','); and now stuck for next one.... above showing like hi(abc),this also wrong. Please help me out...
Sonam_SFDCSonam_SFDC
If i understand your requirement correctly, you can create a visuaforce email template and use merge fields to send this mail updating the fields dynamically:
https://developer.salesforce.com/page/VisualForceEmailTemplates_sample
Ramu_SFDCRamu_SFDC
Hi, you can create the html template in your salesforce org by following the instructions in the link https://help.salesforce.com/HTViewHelpDoc?id=creating_html_email_templates.htm&language=en_US. This is a declarative way of creating the html email template.

Also view the below video for your understanding

http://www.youtube.com/watch?v=sRnjmiOf588

However, if you want to go above and beyond and go above declarative way, you can consider creating visualforce email template by following the guidelines in the post at the link http://www.infallibletechie.com/2013/05/visualforce-email-template-with-custom.html.