You need to sign in to do that
Don't have an account?
Example of Sending Email to a Profile using Template in Apex controller
Hi,
Is there any example code that could be used to send Emails to a selected Profile(all the members in Profile) members with the email template(containing merged Fields) using apex Code in controller. I can find examples using hardcoded emails in code but couldn't find something relevant to my needs. Any pointer will be highly appreciated. Preferably in Java.
Thanks
Is there any example code that could be used to send Emails to a selected Profile(all the members in Profile) members with the email template(containing merged Fields) using apex Code in controller. I can find examples using hardcoded emails in code but couldn't find something relevant to my needs. Any pointer will be highly appreciated. Preferably in Java.
Thanks
Please check the below link and let me know if it works for you..
https://developer.salesforce.com/forums/ForumsMain?id=906F000000090G6IAI
instead of hardocding you can simply collect all emails in list of string and then you can assign that list for sending an email...
Please mark this as solved if it works for you.
Thanks,
Karanraj
Salesforce Technical Consultant
http://www.karanrajs.com