You need to sign in to do that
Don't have an account?
Parteek Goyal 3
How to create email body in apex class
Hi All,
actully i want to create email body in apex class. i already create it like this:
body='Hello';
But i want to define this body in more than one line.
Please help me.
actully i want to create email body in apex class. i already create it like this:
body='Hello';
But i want to define this body in more than one line.
Please help me.
You will have to use the setHtmlBody() method.
Example:
Thanks,
Kaustav
All Answers
You will have to use the setHtmlBody() method.
Example:
Thanks,
Kaustav
check this blow for more info:-
http://www.sfdc99.com/2014/03/01/sending-emails-using-apex/
Thanks
Anil.B
This code is really helpful for me. Thanks for your help.
Thanks,
Parteek Goyal