Create Custom HTML Email Templates in Salesforce Classic
- Do one of the following:If you have permission to edit public templates, from Setup, enter Email Templates in the Quick Find box, then select Classic Email Templates.If you don’t have permission to edit public templates,go to your personal settings. Enter Templates in the Quick Find box, then select Email Templates or My Templates whichever appears.
- If you have permission to edit public templates, Enter Email Templates in the Quick Find box From Setup, then select Classic Email Templates.
- Go to your personal settings if you don’t have permission to edit public templates. Enter Templates in the Quick Find box, then select Email Templates or My Templates—whichever appears.
- Click New Template.
- Choose Custom (without using Letterhead) and click Next.
- Choose a folder in which to store the template .
- To make the template available for use, select the Available For Use checkbox.
- Enter a Name in Email Template Name.
- Change the Template Unique Name if necessary . This unique name refers to the component when you use the Lightning Platform API. In managed packages, this unique name prevents naming conflicts in package installations. This name can contain only underscores and alphanumeric characters, and must be unique in your org. It must begin with a letter, not include spaces, not end with an underscore, and not contain two consecutive underscores. With the Template Unique Name field, you can change certain components names in a managed package and the changes are reflected in a subscriber’s organization.
- choose a different character set from the Encoding drop-down list if desired .
- Enter a Description for the template. Both template name and the description are for your internal use only. The description is used as the title of any email activities you log when sending mass email.
- Click Next.
- Enter a Subject for the message.
- Enter the HTML source text for the message. Include all the HTML tags.Note If you are including an image, we recommend uploading it to the Documents tab. Then you can reference the copy of the image on our server. For example:
- Enter merge fields in the template subject and body if desired. When you send an email, these fields are replaced with information from your lead, contact, account, opportunity, case, or solution.
- Click Next.
- Enter the text-only version of your email or click Copy text from HTML version to automatically paste the text from your HTML version without the HTML tags if desired. The text-only version is available to recipients who can’t view HTML emails. Warning We recommend that you leave the text-only version blank. If you leave it blank, Salesforce automatically creates the text-only content based on the current HTML version. If you enter content manually, subsequent edits to the HTML version aren't reflected in the text-only version. When left blank, the text-only content is automatically created when sending an email via the UI. If you use that same template to send email via the API or APEX, you must provide the text-only content. Remember to update text-only content when you change the HTML content.
- Click Save.