Salesforce email templates come in a variety of shapes and sizes, ranging from Text to Visualforce. These email templates can be used through Salesforce through approval processes, workflows, etc to send email to users.

learn more… | top users | synonyms

1
vote
1answer
13 views

Generate Barcode dynamically in Email Body/Attachment

I need to send emails to multiple contacts with a bar code based on Customer ID in a pdf attachment. The requirement was to add the bar code in the attachment but due to salesforce limitation of ...
0
votes
1answer
14 views

How to show the todays date in VF Email template in salesforce

I am using {!Today} in a Custom Email Template and it is showing today's date. But I need to change the template to VF template and I am getting a error. Can suggest how can I show today's date ...
0
votes
1answer
27 views

Send an Email with a list of Leads without using Apex [on hold]

I'm developing a Visualforce page which Users will use to check for duplicate Leads. The VF page will do a SOSL lookup on certain fields, returning Leads that match and display those in a table. I ...
1
vote
0answers
21 views

Email send with PDF Attachment

I have a VF page with below custom controller. I am not getting the exact point why the email is not getting generated. Can someone please help? Apex Controller public with sharing class ...
0
votes
0answers
27 views

Cross object field values are not populating in HTML email template

I need to populate the field values following objects, Opportunity: Custom Object 1: Lookup relationship with Opportunity Custom Object 2: M-D relationship with Custom object 1 Now i have created ...
1
vote
1answer
24 views

AMPScript to check content box in template

I'm trying to get the ID (or any other credentials) of the content box into the template via AMP script. This is to apply styling for the table wrapping the area if there is no content. Can you ...
0
votes
0answers
16 views

Image not getting display in Custom Email Template [duplicate]

I have created a custom email template and added image into the html version <img src="https://c.ap2.content.force.com/servlet/servlet.FileDownload?file=01528000001HUDq" alt="Company Logo" height="...
0
votes
1answer
16 views

On button click, How to send a dynamic mail to distribution list on certain conditions met in the custom object?

When a user clicked on custom button and meets the criteria (Like..For different picklist values are assigned different distribution list) then I need to send a dynamic mail . How to acheive this? ...
0
votes
0answers
10 views

Is there a way to select Partner contacts in the email templates?

When sending an email from an Opportunity there is a field to select "Additional To" email addresses. Clicking on the magnifying glass allows one to select "All Coworkers in Company" (presumably ...
0
votes
0answers
33 views

case details are not getting populated in Email template

I am using template in Apex class.Email template containing case details. In apex class i am able to send mail to user but data is not coming in email tamplate (like case number) for(case cs:caselist)...
0
votes
1answer
55 views

How to create simple HTML forms in Salesforce Marketing cloud email templates?

I am trying to create a simple form with one or two fields in the email templates.I have created the same before in landing pages and I am not sure we can achieve the same in email templates .And my ...
1
vote
1answer
20 views

How to add opportunity owner in email template?

guys I am having trouble including the opportunity owner in my email template. This is what I used to include the opportunity owner: {!Opportunity.Owner} But when I use this I just get a blank in ...
0
votes
0answers
9 views

recipient.Id Is Null : When it is sent from Site.ForgotPassword and System.ResetPassword

I am using the forgetpassword functionality and added a VF email template , However the values are coming as null. The VF email template is: <messaging:emailTemplate subject="Update Password" ...
2
votes
1answer
22 views

Visualforce Email Template Not Showing Recipient Name

I have a Visualforce email template that is being used as part of a WFR Email Alert. I have multiple recipients in the email alert. How would I get my VF template to email each of these recipients? ...
1
vote
1answer
22 views

unable to move opportunity information to merge fields of visualforce email template from apex trigger

I am sending emails(with visual force email template) to different levels of approvers present in opportunity record when every we click a button submit for approval. Our requirement is if a person 'A'...
2
votes
0answers
34 views

Journey Builder/Communities - Welcome Email - Registration URL

We would like to utilise Journey Builder to send the Welcome Email to new community users with the registration link. Salesforce provides this link in email templates via {!Community_URL} and via the ...
0
votes
0answers
17 views

Getting Merge fields from Email template to query all merge fields and replace programatically

I want to send an emails from custom object to selected contacts using Amazon SES. I did Amazon SES integration through C#. I'm able to send emails successfully but I want to use merge fields in ...
0
votes
2answers
36 views

Visualforce emailTemplate

Please help me to get one of the following values based on True/False in VF Email Template. I need to display a value/message based on true or false of this if {!if(relatedTo.subject__r.name='...
1
vote
1answer
15 views

Email Alert for CaseMilestone not working

Email Template: <messaging:emailTemplate subject="Milestone:{!relatedTo.MilestoneType.Name} - yet to complete" recipientType="Contact" relatedToType="CaseMilestone"> <messaging:...
0
votes
1answer
38 views

How do I send translated emails based on the language on the user record?

Just i want to send email content type multiple language. <messaging:emailTemplate subject="Confirmation Registration" recipientType="Contact" relatedToType="User" language="{!relatedTo....
0
votes
1answer
25 views

Any way to restrict empty fields from email templates

Hi friends is there any way to restrict empty fields from email templates when sending email to users with workflow or any other. I have a workflow.Whenever any record meets the criteria it will sent ...
0
votes
2answers
19 views

How can i add receipt first and last name in email tepmplate URL?

I have created a visualforce email template. In that I need include a link which should contain opportunity id. Next to it,first and last name of receipt. As of now i am done with opportuniry id.But ...
0
votes
0answers
30 views

How can I use the CASE() function in an HTML Email Template

I have a picklist custom field in the Contact object, Chats_Reward__c which has five values: Ribbon, Bronze, Silver, Gold, and Platinum. I would like to use a single email template to send an email ...
0
votes
0answers
14 views

Remove or make smaller thread id in email-to-case

I know thread id is required, is it possible to make it smaller or put differently? Even if reply is in a different font, thread id is attached at the bottom and looks ugly. Here's an example of ...
0
votes
1answer
39 views

Trigger to send a email when fields are updated [closed]

I have one custom Object. I'm modifying and saving few records at a time. When i click on Next button these three records are saving. I need to send a email to all user under one profile whenever ...
0
votes
0answers
20 views

Visualforce Email Template to Related Contacts

I have a VF email template set on the Accounts object that compiles the related Cases to an Account that meet a certain criteria. I would like to send this template to any Contacts related to the ...
0
votes
1answer
40 views

Sending Email from apex controller by calling an email template

I have an email template which I am calling it from a work flow rule. Also I have a check box in contact object, when I click on check box the email template will send email to the contact email ...
1
vote
2answers
74 views

How can I perform an arithmetic calculation in an HTML Email Template when the first operand is not a field reference?

I'm attempting to create an email that lets contacts know they have a certain number of tasks to complete until their next reward. I know I can do {!Contact.Chats__c - 10} to get a value, but I need ...
0
votes
0answers
10 views

Can I send emails to multiple sets of Contact Roles identified in a report and update the Opportunity with a record of the email?

An SF report of my creation would identify a subset of Opportunities and their associated Accounts. I want to identify a subset of Contact Roles from those accounts and email those Contact Roles from ...
0
votes
1answer
38 views

Unable to fetch the merge field in VisualForce Email Template

I am using a Visualforce email Template. I am unable to fetch merge fields. Below is the code: <messaging:emailTemplate subject="Volunteer still needed for a shift" recipientType="User" ...
0
votes
0answers
36 views

How to add letter head in html email body?

I am trying to add letter head to the dynamic html email template in batch apex. But when i send email to the users I don't see any header added to the email. part of code from batch class : List&...
0
votes
3answers
108 views

Verify Contact Email address. If Email is not present send an email to login user

I am looking for a specific requirement where I need to send an email login user whenever the user is creating a new Contact in Salesforce. If any contact exist with the same email Id, I need to send ...
0
votes
2answers
50 views

Visualforce - Standardcontroller components are not rendering when called from JS

I am trying to preview the email template inside a Visualforce page, and for this purpose, I query for the EmailTemplate record's body inside JavaScript, and then I let the standardcontroller do rest ...
0
votes
1answer
35 views

Internal Server Error, Error ID: 1289938336-249754 (526957723) on rendering image in a PDF email attachment

I'm stuck on this issue for more than 3 days now and have tried numerous workarounds to fix this. Let's begin with some background: I have an Order__c custom object, when Order__c.Status__c == '...
1
vote
1answer
16 views

Any versions available for Email Templates in sfdc

Hi Friends i thought it is not an important question.I went to an interview few days back they ask me about version using in email templates. But,till no i didn't see any version for email templates ...
0
votes
1answer
40 views

apex trigger send an email but merge field cannot display value

I try to use an apex trigger send an email which is formatted by an email template. I successful send this email but merge field cannot display value. who can give me some help? here is my code: ...
1
vote
1answer
39 views

How can we add multiple updated fields in single email

In above picture I'm going to send an email if answer__c updates. Above picture illustrate each answer is going to be one record, so if two answers got modified then two email will fire. I need ...
1
vote
0answers
41 views

Custom Mail Merge Button to skip Page with Generate button

I am trying to create a custom mail merge button that skils the Generate page. I started out with this URL in a dev environment using the below for formula : IF(CONTAINS($Profile.Name,"Business ...
1
vote
1answer
55 views

Visualforce email template not resolving recipient and relatedTo at runtime (WhoID, WhatID)

We are having several VF templates that are used in an email alert in a Process. When we trigger the Process from Apex, then the Process is run, but the email template is not merged properly (even ...
0
votes
0answers
11 views

Custom Html Template

{!Dealsheet__c.MailTmplate__c}: This is my html template code i have CP_Address_Line1__c and CP_Address_Line2__c..now suppose i am not taken the field value for CP_Address_Line__c and am send mail......
0
votes
1answer
104 views

ExactTarget - Is it possible to send template email to list of users

I am trying to build a simple email application using Javascript to go against either the ExactTarget SOAP or REST API. Our goal is to use only Exact Target to build email templates and then send ...
1
vote
1answer
47 views

Email generated from VisualForce email template has unneccessary white space

I have a Visual Force email template that shows Products ordered and Tracking. In a nutshell: Tracking / Products both exist on Sales Order Lines for a specific Sales Order. Products have a ...
0
votes
3answers
30 views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying ...
3
votes
0answers
34 views

Un-Escaped HTML for Variables in Guide Template Language Not Working

We have HTML templates in ExactTarget that use variables passed in via the REST API. The variable contains text with HTML entities. I read the following documentation for the Guide Template Language....
1
vote
1answer
17 views

Using Render With Repeat in Plain Text Email

I have a VF page set up as an email template. I have a repeat tag on the HTML part of my template that pulls in Cases based upon some criteria contained in an OutputPanel. I am trying to accomplish ...
3
votes
1answer
43 views

Hide HTML table rows if outputField is null or 0

I am creating a confirmation email to be sent when a new Orders__c is created via an external form. These are not related objects so an <apex:repeat> solution is not viable. There are 50+ fields ...
0
votes
0answers
40 views

'If' condition not working in html email templates

I have 2 fields which need to populate with their values in html email approval requests. Below is the code in html template: Some Percentage: {!IF(customobj.CAN_Percentage__c = 0,customobj....
2
votes
1answer
29 views

How to dynamically add image in email merge template?

I was trying to add image in the mail merge template I follow this link to add image in the doc page here. But when I select the mail merge template which I was created it show success message, but ...
1
vote
0answers
24 views

I want to translate merge field values of my Email Template,already translated the other text of the Email Template

I am unable to fix this issue,the entire text of the email template is getting translated ,except the merge fields that I've used. My code for the Email Template is as follows: <messaging:...
1
vote
0answers
30 views

Send mass email with attachment (attachment need to select from vf page)

i have a vf page with email template pick list user able to select email template Choose file : user able to upload a file attachment from his computer. there is a command button send email . once ...