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

2
votes
0answers
7 views

Overriding the “Select Template” button in Email Author

Is there a way to over-ride the "Select Template" button in the Salesforce standard email author page with a custom visualforce page ?
1
vote
1answer
25 views

How to send an email from Apex with a template based on an Event record?

I have been trying to figure out how to send an email from Apex for a template that needs an Event object to work. In my example below, I want to have a visualforce template that will work off of an ...
0
votes
0answers
9 views

Adding Line Break in Text Email Template

I'm trying to add an address to a text template (not a standard address field), that only displays the second address line if it's present. However, I can't seem to get this to work. If there address ...
0
votes
1answer
34 views

Button for email template and recipient

I have created a custom button(like send an email function) to define the email template and the recipient email address. Behavior is set to execute Java, content source is OnClick Java. Code is ` ...
0
votes
1answer
31 views

Approval History Related List in Visualforce Email Template

Am wondering how to get usable info in the approval hisotry I can add to my visualforce email template. I have the below (UPDATED): <messaging:emailTemplate subject="Lead Final Approval" ...
2
votes
1answer
32 views

API to create Exact Target Email Templates

Is there an API in Exact Target to create an email template from HTML? I've seen questions on how to create an email from a template, but I want to do the opposite create a template from HTML. ...
0
votes
0answers
8 views
1
vote
1answer
27 views

Custom HTML Email Template Formatting issues

I am creating a new email template. I am using the Custom (without using Letterhead) option. I have been building the HTML in NOTEPAD++ as a basic HTML editor. The template includes 2 tables with rows ...
2
votes
1answer
32 views

How to get the approver name into an HTML email?

This should be pretty easy but it's giving me bouts of grief. I need to get the name of the person that approved a record into an HTML email template, as there are several possible approvers and they ...
0
votes
0answers
14 views

How to use email template with Knowledge article fields?

Even though the email template editor suggests that it should be possible to use only parts of an article that is attached to a Case, my experience is that the whole article is simply dumped into the ...
1
vote
0answers
41 views

ReplyTo email address using Visualforce email templates but sending through apex

I have been working on creating a Visualforce page that allows you to choose users and send out emails to those users using apex. The problem I have run into is that the email address that the user ...
1
vote
0answers
9 views

Remove the reference code from customer emails?

Salesforce includes a very strange and long reference code in the subject of customer emails, which I don't think is necessary, because it's also included in the body of the email, and just ends up ...
0
votes
1answer
24 views

Changing field labels affect email merge templates?

When changing field labels in Salesforce, it will complain about how doing so might break merge templates. Our email templates use the API name of the field, not the label. Will changing the label of ...
0
votes
0answers
24 views

VF - Display Email Template in TextArea With letterhead

I have a textArea field Body__c on an Object myObject. I want to display an Email Template in an apex:inputTextArea. I want the body of the template to show up along with letterhead images. Right now ...
0
votes
1answer
17 views

Read URL parameter as variable in visual workflow

scenario is like this, marketing team sent blast email to campaign member. member receive the email invitation. if member want to confirm his attendance for the campaign, he can simply click the ...
1
vote
1answer
42 views

URL Scheme to open VF page in Salesforce 1 iOS app

Is it possible to open a VF page in Salesforce1 iOS app coming from a link in an email? If not, do you have any workaround ideas to make this work?
0
votes
3answers
39 views

Is my email template with link to Salesforce1 correct?

I appreciate any help related to this post. Is this template correctly done?: <b> Case {!Case.CaseNumber} has been assigned to you. Click this link to access in a mobile app: < a ...
0
votes
0answers
21 views

How do i get a Visualforce Email Template Id from WITHIN the the message body?

I'm trying to pass the id of the Visualforce email template in a url parameter for a link within the same email. This is the idea: {!This.EmailTemplate.ID} Anyone know if this is possible?
0
votes
1answer
20 views

Is it possible to embed or hide a merge field in a html email template in salesforce?

I have created an apex class and email service that handles inbound emails and associates them to a record based on a match in the email subject. The idea is to mimic email to case functionality for ...
0
votes
2answers
29 views

How do you get the Related To objects which appear when sending an Email?

When you send an email in Salesforce you can related it to an Object from a preset list, I'm wondering if anyones knows of a way anyways to find what this list is?
1
vote
1answer
28 views

Sort Content from One DE based on Content in Another

I am using the LookupOrderedRows function to pull information from a membership table and need to sort it based on data from a separate DE that contains all the group activity, I have tried a nested ...
0
votes
2answers
39 views

De-reference a null object error when attempting to set user variable value to Owner

I'm putting together a trigger to handle some of my workflow rules (our org is hitting limits) and I keep getting the following error: "Error:Apex trigger AR_Email_Alerts caused an unexpected ...
0
votes
1answer
28 views

All outbound emails stopped sending

I've been setting up our account to send a few workflow triggered emails. I was testing an email yesterday with the "Send Test and Verify Merge Fields" button. Did this probably 50 times trying to get ...
1
vote
1answer
35 views

Salesforce, Email Template, Field “Additional To” cuts the rest of address after “&” sign

Hi stackexchange community. I have noticed that the e-mail template i've been using somehow cuts the rest of the address in "Additional To" field, if it contains "&" sign (e.g. ...
0
votes
2answers
54 views

How to use Formula Operator in HTML Email Template?

I want to use certain Formula Opearator like HYPERLINK, LEFT, FIND in my HTML Email Template. But I am not sure how to use that. I tried using like below. HYPERLINK({!Sobject.Link}, 'SOBJECT') ...
0
votes
1answer
27 views

Birthday eMailer app

I downloaded the Birthday eMailer app in mid-2014 so that we can send birthday emails to our customers. This year we wanted to refresh the look of the email that we send out so we created another ...
0
votes
1answer
40 views

Walking relationships in email templates in a workflow

I have a custom email address field on Account called Primary Email Address. We have also created a custom object off of account called Purchases. I want to be able to send an email to the Primary ...
0
votes
1answer
22 views

Including a RelatedList of tasks in a broadcast email via Visualforce

So I'm just trying to see if this is possible. I've been tasked with trying to find a way to include a related list in a broadcast email template. Some background, we use Tasks for student forms and ...
2
votes
1answer
83 views

Preview email content of email templates before sending

I am developing a feature to send a email from a Custom Visualforce page. For this I am using the Messaging.SingleEmailMessage class. I need to give users, the option to select email templates from ...
0
votes
1answer
42 views

Email Template Not Mapping Information from Web-to-Lead Form

I am a bit new to salesforce. I am trying to populate "Signed Date" from my Web form on to the email template. But it is not populating only that field.My email tepelate is: Signed (Student) Date ...
1
vote
1answer
28 views

commandlink in Visualforce email template not working

I have an email template that includes a commandLink. This utility method is used to send the email. public static Boolean sendEmailTemplate(String tNm, Id toId, Id wId) { ...
1
vote
2answers
47 views

How to handle Email Opt Out for Various Categories

We have a requirement as Contact having 2 checkbox fields as 1. Unsubscribe Newsletter 2. Unsubscribe Webinar Emails If Contact select "Unsubscribe Newsletter" then no mails will send to the Contact. ...
4
votes
1answer
231 views

Communities Welcome Email - Set Password link not working ({!Community_URL})

Background: We've enabled communities and set up user profiles, access etc. There are no login flows nor SSO going on, everything is pretty standard apart from a custom login page (active site ...
1
vote
0answers
73 views

No line breaks in auto-generated Text Body from HTML Email

According to this article: https://help.salesforce.com/HTViewSolution?id=000194309&language=en_US Leaving the text body of an email template blank will cause any edits to that template to be ...
0
votes
0answers
64 views

If Else in Email Template

I am trying to mail merge using a string of if-else in a text email template. It seems that the system is unable to mail merge custom fields using if-else. ...
0
votes
1answer
43 views

Problem with sending an email that uses a custom component/controller

I've put together a Visualforce email template for cases and I'm running into an issue with it that only occurs when the case is initially created. The component pulls a list of related records from a ...
2
votes
0answers
29 views

Why am I seeing email notifications in a different language?

For some reason, when an external user/customer updates a support case, the email notification I receive is in a different language. As far as I know, I haven't explicitly configured Salesforce to ...
0
votes
0answers
38 views

Send Email with Template on Custom Record's email ID

I am having one Email Template which I want to send in an email - How can i achieve that one - String strToEmail=objEmp.Office_Email_c; Messaging.SingleEmailMessage email = new ...
0
votes
1answer
17 views

How can I use site field in an email template?

I'm trying to add Site Fields into my Email Template, but in the mail these fields are blank. I tried adding this into my Email Template: <br/>tld: {!Site.TopLevelDomain} <br/>upp: ...
1
vote
0answers
102 views

p3_lkid error with custom button to send email related to standard object

I'm trying to set up a custom email button on my opportunity page that will select a template and auto-fill a few email addresses. My approach basically follows the one I found here: ...
1
vote
1answer
64 views

Recipient details in HTML Email Template

I would like to enter recipient details (First Name and Last Name) in the HTML Email Template body. My recipients are always my Salesforce users and they are having always first name and last name. I ...
0
votes
2answers
117 views

Conditions inside html email template for picklist values

I am new to salesforce and my scenario is like this: Based on the status value of Case object I need to make the link present in HTML email template dynamic. ie.: If I select Closed as status value ...
0
votes
1answer
92 views

Email Template not populating {!Contact.Name} with workflow Email Alert

I have created an email template using {!Contact.Name} merge field to display conatct name. Object XYZ__c has a lookup field MyContactLookup__c. I have created workflow on object XYZ__c on record ...
1
vote
0answers
76 views

How to set multiple “setwhatIds” and “setTargetObjectIds” in salesforce?

How can I set multiple objects Id in targetObjectsIds and WhatIds?? Whenver I tried to do that it gives an error String[] bccAddress = new String[] {'contact@testcompany.com'}; ...
0
votes
0answers
47 views

can setTemplateId be used along with SetHtmlBody for the following code?

public EmailMessageWrapper(String fromAddr, Id toAddrId, String sub, Map<String, String> mapSubjectParams, Map<String, String> mapBodyParams) { this(fromAddr, null, toAddrId, null, ...
1
vote
1answer
30 views

Using component to list rows from related object

I have created a visualforce email template and I would like to display rows from a related object ORC__c which belongs to the Account object. The email template would be selected like so Contacts > ...
1
vote
1answer
60 views

Listing related data in custom email template via component

I am creating an email template which will be sent to individual contacts, the template needs to list rows from a related object. I have created the relevant component and class which I believe would ...
1
vote
1answer
64 views

Email scheduler unable to include the letterhead template for sending emails through scheduled jobs

Email scheduler unable to include the letterhead template while sending emails through scheduler. The header and footer not displayed on emails recieved. Only the dynamic htmlValues can be seen in ...
1
vote
1answer
36 views

Visualforce Repeater Order

What order does the VisualForce Repeater return information in? I'm making a Visualforce email where the aim is to retrieve the most current record of information in a related object to the one which ...
2
votes
0answers
24 views

Render based on TemplateId [duplicate]

I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click ...