[SalesForce] Send email with multiple related object information via email template

Is it possible to send email with multiple object information such as we have connection between contact and account object so we want to send email via template using some fields from account object and some from contact object?
Thank you

Best Answer

Yes you can. If you need complex logic that pull information from several objects you can create visualforce email template and inside use visualforce component. The visualforce Component can have apex controller that will retrieve all the relevant data that you need.

Related Topic