You need to sign in to do that
Don't have an account?

Apex Class Send Email
Hi,
I have two custom objects with Master-Detail relationship. I would like to send email to the records displayed in the child object using the visualforce email template. Could someone please assist? I came across to the following link but seems like its not helping me.
https://www.salesforce.com/us/developer/docs/pages/Content/pages_email_custom_controller.htm
Thanks,
Urvik
I have two custom objects with Master-Detail relationship. I would like to send email to the records displayed in the child object using the visualforce email template. Could someone please assist? I came across to the following link but seems like its not helping me.
https://www.salesforce.com/us/developer/docs/pages/Content/pages_email_custom_controller.htm
Thanks,
Urvik
http://stackoverflow.com/questions/13701379/apex-code-to-send-email-alert
http://www.sfdc99.com/2014/03/01/sending-emails-using-apex/
http://teachmesalesforce.wordpress.com/2011/06/05/sending-more-than-10-e-mails/
You can query the child objects from the trigger using the parent ID in the SOQL filter and get the email addresses and send email.