Creating New Salesforce email templates
In this Salesforce Tutorial we are going to learn about Creating New Salesforce email templates, How to send mass email in Salesforce and what are the different Salesforce Email templates.
Salesforce email templates are used to automate the business process in SFDC. So in this section we are discussing the concept of different email template and why do we go for email templates. workflow rules, Approval process and lot more are discussed in our upcoming Salesforce tutorials.
What is need of Salesforce Email Templates?
Salesforce Email Templates are used in the following automation process. They are
- Sending out mass Emails.
- Used in Workflow rules.
- We us in Approval process.
- Assignment Rules.
- Used in Web to Lead Forms.
- Used in Web to Cases and so on.
What are the different Salesforce Email Templates?
- Text.
- HTML with letterhead.
- Custom HTML.
- Visualforce.
Among the four Email templates regularly we use Text and Visualforce template in Salesforce.
Creating Text Email Template folder in Salesforce.com
To create Text Email templates in Salesforce navigate to Administer | Communication Templates | Email Templates.
We have standard email templates created in folder called Unfiled Public Email Template by default. We can create any number of Salesforce Email Template.
- Login Salesforce to create new email templates
- Click on Email Templates as shown below
- Before creating new template create a new email template folder to Save all custom email templates.
- Click on Create New folder.
- Enter Email template folder name.
- Select public folder access type.
- Click on Save.
As shown above we have created Email template folder successfully.
Creating Text Email Template in Salesforce
In the first step we have to select email template type. As shown below we have four option click on Text button.
- Select text.
- Now click on Next button.
Here the email template type is text. In this type we don’t have different styles, fonts and have only some text information. Now we have to enter required details to create salesforce email template.
- Select Template folder.
- Select available for use if this is only we can use this email template anywhere if not enabled we can not use this email template in Salesforce.
- Enter Email template name.
- Enter description, subject and Email Body.
- Finally click on Save button to save all the settings.
We have successfully creates Salesforce Email template. We can attach files to the template at attachements.
Mass Email Test in Salesforce
Now we have to test email template that we created. For mass email test in salesforce go to Contacts detail page and select Mass Email test. Here we have renamed contacts as My SP Sales Teams so we selected mass email SP Sales team.
- Select My Sp Sales Teams in View.
- Click on go button.
- Now select mass email SP Sales Teams.
Before sending mass email test in salesforce rename the user email address so that the test email will be sent to the user.
- Enter all the details as shown above.
- Select Send now in delivery options.
- Click on Send button.
We have successfully sent mass email test. Now go to your email address and check your inbox as shown below.
This is the Text Email received.
Adding merge fields to Salesforce Email templates
We have successfully create text email template in Salesforce.com. Now we are going to edit and add available merge fields. Using merge fields we can bring data from Salesforce.com.
- In the Email body we are going to add {!Contact.Name} and {!User.Name} merge field as shown above.
- Click on Save button.
In text email template we have defined dear customer but when we insert merge fields we can specify customer name in the email template. Select the merge field and replace the text as shown below.
This is Email template when merge fields are added in the email body. Contact name and Username are automatically inserted as shown above.
Creating HTML with Letterhead Template
In this Salesforce Email Templates we can use HTML with Letterhead to send description, company logo, header, footer, body and different information to the customer. To create email template with HTML with Letterhead first we have to create letterhead so that this letter head is used in HTML with Letterhead templates.
Creating LetterHead in Salesforce
Before creating HTML with Letterhead first we have to create letterhead in Salesforce. We have many options in letterhead. We can insert logo in the header and footer, we can change the header, body and footer background colour.
Finally click on Save button.
- Select available for use.
- Enter letterhead label and description.
- Click on Save.
As shown above we have added log in the header and footer. We changed background colour and body colour. Click on Save button to save Letterhead in Salesforce.com.
Creating HTML with Letterhead Template
HTML with letterhead is the second type in Salesforce Email templates. In this type we can find many customization tools, merge fields, colours, footers and headers.
Now navigate to Setup | Administer | Communication Templates | Email Templates | Html using letterhead.
- Click on HTML(using Letterhead).
- Click on Next button.
- Select folder.
- Available for use.
- In this email template type we have to select LetterHead and it is mandatory.
- Select email layout.
- Enter Description.
When selecting Email layout we have six email layout in the dropdown. Select any one from the list. Click on View Email Layout Options to view the layouts.
Click on Send Test and Verify Merge fields. So what we have to do is we have to update the email of a contact with our email template.
- A test email has been sent with HTML using letterhead as shown above.
Creating Custom HTML Template in Salesforce
Custom HTML Template is the third type in Salesforce email templates which is used with out letterhead. We can use custom html code in this email type. Let us create Custom HTML Template.
- Enter Subject.
- Enter HTML code in the HTML body to design Salesforce Email templates with our custom html code.
- We can also add merge fields in this template.
Successfully we have created Custom HTML template in salesforce.com.