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
SV MSV M 

Send Email with attachment and Contact merge fields

Hi, I want to send an email which contains attachment related to contact and some contact merge fields. Can someone help me how to do this using batch apex...
Ashima nidhiAshima nidhi
I am not sure about the standard merge template but using custom we can refer. Please check sample code from one of the BLOG 
https://www.greytrix.com/blogs/salesforce/2017/03/29/send-an-email-with-attachment-from-salesforce/

Hope the  above information was helpful.

Please mark as Best Answer so that it can help others in the future.