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.