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
23 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
16 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
31 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
5 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 ...
0
votes
1answer
31 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
38 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
23 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
18 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 ...
1
vote
1answer
12 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
24 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
33 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 = ...
2
votes
1answer
26 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
14 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: ...
1
vote
0answers
20 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 ...
3
votes
2answers
139 views

Adding an image from a document tab to email template?

I have many images in document tab and all are externally available. When I try to add the image in HTML & VF email template, the images look broken in outlook when its received. I thinks ...
2
votes
0answers
21 views

How to add image in email template dynamically?

I have a letterhead that I'll be using for different Email template. On VF page, I have a button which will take the screenshot of the page and store in a rich text field in a custom object. The ...
1
vote
0answers
15 views

Record Link in a String Message Body in html email template

I would like to use an Account link in a contract object in html email template.The email is sent by using the String message body. So when im using '<html><body>Hello ...
0
votes
0answers
25 views

I want to Translate Merge field values of my Email Template,provided other text already translated

I have a requirement where I want to translate Contact fields in different languages,which are actually the language in which that particular contact communicates with us,selected by a pick-list on ...
1
vote
1answer
26 views

Change sfdc Approval process email reply for wrong spelling APPROVED

When we use approval process, we can approve through email. This is my question, because we can reply wrong spelled word in email, how can I modify the salesforce reply if the APPROVED word is ...
0
votes
0answers
23 views

How to send email using Templates in multiple languages,also translating merge fields?

I have a requirement to send email to my contacts depending on the language selected by a custom pick-list. Although,Translation workbench provides a platform to have languages activated,and we can ...
0
votes
2answers
17 views

VF component doesn't render in HTML Email Template

What's wrong with this Apex/Visualforce code that it returns nothing in my HTML email template? I've tried everything. Controller: public class EmailController { public Id leadId { get; set; } ...
1
vote
0answers
23 views

Visualforce Email Templates + Field Sets - apex:outputField showing up blank in testing

I'm using field sets to dynamically query and merge fields across objects onto a Visualforce component to put in a VF email template. When I query the parent object (Intake) it seems to work fine but ...
0
votes
1answer
22 views

How can I append query string params to the view_email_url?

I have a share link in email which works fine: <a href="mailto:?subject=my subject&amp;body=view my link: %%=URLEncode(view_email_url,1)=%%" title="Share" target="_blank">Share</a> ...
1
vote
1answer
22 views

Pull OpportunityContactRole value into VisualForce Template related to an Invoice

We're setting up a workflow to notify the finance department when an Opportunity owner flags an invoice as "ready to be sent". I've got a VF email template, relatedTo="invoice", and I want to pull ...
1
vote
2answers
65 views

SendEmail failed. REQUIRED_FIELD_MISSING, Missing targetObjectId with template:

Can any one help me out with this error . 1)When im using mail.setTargetObjectId(c.CustomerSignedId); the system start throwing a error . SendEmail failed. First exception on row 0; first error: ...
0
votes
2answers
22 views

Task email template with name of associated contact, not ID

I have what seems to be a very simple problem, I'm trying to set up an email template with information from a task. One of the fields I would like to include is the name of the associated contact or ...
0
votes
1answer
14 views

Unable to pop values from a standard object onto a custom object

I am trying to pop up values from a Lead lookup field on a custom object in email template. I am using the detail link {!Lead.Link} in an email template. Please let me know how to populate values.
0
votes
2answers
18 views

Generate a weekly email for each user based on role, who have custom opportunity objects that meet a criteria

I've got a custom object "Invoices" tied to my Opportunities, so Opps have 1 or more invoices. Each invoice has a "date to be sent" field. What I'd like to do is auto-generate an email every Monday ...
1
vote
0answers
5 views

Issue with Custom Domain Standard Email Template image not render

I am facing a problem with an email template which is bind with a workflow. The issue occurs only when we use custom domain. When the email template is fired through workflow from custom domain , The ...
0
votes
0answers
29 views

HTML Email template Merge fields are not working in Batch class

Based on the requirement i have created few html email templates with the merge fields .When i use the templateid in the batch class and execute the batch class,the email which i get doesnot display ...
1
vote
2answers
53 views

Send email using apex with merge fields from a custom object in the email template

This appears to be a simple use case that I can't figure out. I want to send email to a list of UserIDs based on an HTML or VisualForce email template. The email template could look something like ...
3
votes
1answer
30 views

Implement Business Hours for Email Triggers

I have a client requirement where I want to send some notification emails only during weekdays and business hours. I tried to Google this, and got to see that 'Business Hours' functionality must be ...
0
votes
0answers
18 views

Can you set an html docType on a Visualforce Email Template?

I can't find any way to control docType of any type of email in Salesforce. First I tried Custom and then I tried Visualforce. Any ideas? Thanks!
2
votes
1answer
34 views

How can I put a line break in the text of an IF statement in a plain text email template?

I am trying to put a line break inside of an IF statement within a plain text email template. The template is like this: Hi {!Receiving_User.FirstName}, {!IF(Receiving_User.Profile = "Desired ...
2
votes
1answer
20 views

Long Community password reset URL is overflowing table in Outlook 2013 html email

I am not finding a solution to get a long URL to wrap inside of a <table> <td> The URL wraps in other email clients I have test but not in Outlook 2013 Here is a small screen grab from ...
0
votes
1answer
27 views

Apex Class Scheduler for email template

I am turning to the forum for guidance and assistance. I have been trying to figure out a a means to schedule a email to fire to for a Contact on an Account that has not submitted their Monthly ...
1
vote
1answer
29 views

Custom Tag Content Not Showing In Preview

I'm using the following custom tag in my template: <div style="font-size:14px;color:#000000;font-family:Arial,sans-serif;margin- bottom:10px;line-height:130%;"> <custom type="content" ...
0
votes
1answer
27 views

Is there a way to find all uses of a field in mail templates and other sources? [closed]

How do I find all the uses of a field beyond just Apex classes?
1
vote
0answers
38 views

Clarification on SingleEmailMessage changes in Winter '16

Anyone knows the implications of this new method? setTreatBodiesAsTemplate(treatAsTemplate) Optional. If set to true, the subject, plain text, and HTML text bodies of the email are treated as ...
1
vote
1answer
47 views

Is there a way to determine if EmailMessage has reply

I'm after finding a way to know if a EmailMessage object has a reply? I have tried to use Trigger after insert but I do not see its picking. Any other better way? when the user response to ...
1
vote
1answer
19 views

How do you find out EmailTemplate selected in Case or EmailMessage

Is there a way to find out what Template user selected when sending an email? I was looking at it in the EmailTemplate object field called TemplateType this will give you either Text' orVisualforce` ...
2
votes
3answers
52 views

Incorporating image in Email Template

I have an visualforce email template. I want to add an image to the template i.e. the image will be visible in email sent to an user <apex:image id="Logo" value="https://......" height="64" ...
1
vote
1answer
37 views

Metadata API - listmetadata() for EmailTemplates is empty

I was able to retrieve metadata for DashboardFolders using listMetadata(). However, the same does not apply for EmailTemplates where it returns empty. The inference from this thread is that it is not ...
4
votes
1answer
105 views

Dynamically using Field

I have a function as below: public PageReference resendEmails() { List<ts2__Placement__c> selectedPlacements = new List<ts2__Placement__c>(); List<Timecards__c> timecards = new ...
2
votes
3answers
67 views

Web Analytics Connector breaking custom unsubscribe page when clicked within email

We created a custom unsubscribe page for a email template that encodes subscriber information when clicked. The unsub page URL contains a ? - normally, not a problem. However, the account has web ...
2
votes
2answers
95 views

Service Console: Record link on email templates causing error

I've noticed an issue that seems to be specific to the service console user interface. I have a VF email template on the case object. Included on this email template is a link to the case record, ...
1
vote
1answer
47 views

why dynamic values are missing in emails?

I have email one email template. In that email template I'm Passing dynamic values like {!Student.Name}. But when i receive email the student name is not displaying. Here is my Html and Plain Text of ...
0
votes
0answers
11 views

Setting the background of an email template from servlet.ImageServer

I created an email template with this code. <html> <head> <center> <h1> Test </h1> </head> <body ...
1
vote
1answer
36 views

attachment in email

I'm trying to send an email with an attachment that is pulled in via a link, eg. <apex:image url="{!URLFOR($Action.Attachment.Download, attachmentId)}" /> And the goal is to be able to have ...
1
vote
1answer
43 views

Email Template IF Statement Formula

I have this Email Template in Salesforce that is capturing information from the lead based on IF Statement conditions. I understand that in order to use formulas on Email Templates I have to use the ...