You need to sign in to do that
Don't have an account?
abhinav sarraf 1
how can i create letter head in apex code
Hi ,
I have a requirement to send an email through code and I need to create letterhead in it. Is there any way to do it?
I have a requirement to send an email through code and I need to create letterhead in it. Is there any way to do it?
All Answers
You can use letter head in your mail from apex like below,
For more info regarding branding your emailtemplate refer
https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_brandtemplate.htm
Regards
Try to use the setTemplateId field of Mail for achieving the above requirement.
Purpose of SetTemplateID: ID Of The The Template To Be Merged To Create This Email. You Must Specify A ValueFor SetTemplateId ,
SetHtmlBody , Or SetPlainTextBody . Or, You Can Define Both
SetHtmlBody And SetPlainTextBody . Please let us know if you need anything else.
Kindly mark this as solved if it's resolved.
Regards,
Nagendra.
Hi Nagendra/Eldon,
What if the content is dynamic?
I know this way but i need the other way of it. as i need to set the data as well.
Regards,
Abhinav Sarraf