O'Reilly logo

The Developer’s Guide to the Force.com Platform by Phil Choi, Andrew Fawcett, Glen Martin, Rick Greenwald

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualforce Email Templates

Earlier in this chapter, you created a simple email message by setting the value of the email body in your Apex code.

The Force Platform gives you the ability to create and use email templates that can be used to send email messages with a particular format, substituting relevant data where appropriate.

You can create email templates with text, HTML, or with Visualforce. In this section, you will learn how to use Visualforce to create an email template, and then use that template to send an email to a job applicant. In fact, the Visualforce template you use significantly reduces the amount of code needed to send out the email in the existing code, while also improving the flexibility of the emails sent.

Creating an ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required