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

0
votes
2answers
8 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
13 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
0answers
15 views

Get the response from emailtemplate t call existing rest api class [on hold]

I have a rest api class which will take casenumber&Rating(Customfield) as parameters and update the Case. Once the user got the mail on case close, I should give option to user to get feedback by ...
0
votes
1answer
16 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
19 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
36 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
17 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
22 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
41 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
26 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
17 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
30 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
19 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
23 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
27 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
35 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
41 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
15 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
2answers
27 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
29 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
104 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
63 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
75 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
46 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
34 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
38 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 ...
0
votes
0answers
24 views

image was not displaying in html email template

Image is not displaying in html email template: <img src="https://na2.salesforce.com/servlet/servlet.ImageServer?id=015O0000000OxJs&oid=00DO00000052p2MMAQ&lastMod=1270576568000″ ...
0
votes
1answer
29 views

Not able to add a blank space in the email attachment

I am trying to attach an ics file and I'm just not able to add a blank space between certain characters. I tried using &nbsp; and <br/> to even break the line but instead it's printing as it ...
2
votes
1answer
22 views

Asserts on sendEmail?

I've written a service class that sends emails based on a trigger. I've also written a test class that tests that code. All lines are covered. Here is my problem. How do I run an assert to ensure ...
3
votes
1answer
58 views

Querying / Managing Queries with Multiple Permutations

I'm writing a class to implement Support.EmailTemplateSelector. To retrieve the correct email template, I'm querying a Custom Metadata Type Smart_Template_Loader_Conf__mdt, retrieving an ...
0
votes
1answer
23 views

VisualForce Email Templates

I'm facing with VisualForce Email Templates and I need to get the email body with rendered field in order to use it somewhere else. This is an use case I've got an email whit this body "Hello ...
2
votes
1answer
38 views

Attach multiple attachments to standard email template

I have a GUI created (not Apex) email template set up. Nothing fancy, just a few fields and some text and it ends with a URL that points to the record where the email got its data. Is there a way to ...
3
votes
2answers
29 views

Using EmailTemplate sObject

I'm looking for information over the network about EmailTemplate sObject. I've got some questions: Could I query this object (select, insert, update, delete)? It's possible to retrive fields from ...
3
votes
0answers
41 views

Visualforce Email Template Page Break

Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
1
vote
1answer
105 views

using custom link to VF page in an email template

I have an HTML email template (NOT a VF template) that should be sent by a workflow rule when the record status is changed to Converted. rather than a link to the record in SalesForce, I want a link ...
2
votes
1answer
34 views

Rendering an Email Template with merged values

A while back I accidentally discovered this GREAT feature of Salesforce where I could display a merged email template via a URL. It was a great feature to show sample emails in my help ...
0
votes
1answer
27 views

“Notification Email Template” a new section is automatically being added to Emails Send via Publisher Action

Found that the custom email publisher action i.e. on a VF page with apex email publisher is adding a new item to the body email by itself .The email template is a custom one with ...
1
vote
1answer
31 views

HTML Email Template Merge field values not coming in email

I have below code where I have to alter merge field values with record data in a trigger. Apex Trigger trigger ABV_SendEmailToOwner on Form_Requests_abv__c (after update) { Form_Requests_abv__c ...
0
votes
0answers
6 views

Object Comment Field Included in E-Mail Template

Let me preface by saying I am very new to this and have much to learn.... Question: If a comment field is included as an object, should I expect to be able to include this comment field in my ...
0
votes
2answers
58 views

I am trying to send email through trigger whenever students record is created

trigger send_notification on students__c (after insert,after update) { students__c std = trigger.new[0]; std = [SELECT id, Course_Name__r.OwnerID FROM students__c WHERE Id IN: std ]; ...
1
vote
1answer
25 views

How to send custom email template while resetting the password?

I have a requirement. Once the "Reset Password" button is clicked on the user detail page, i would like to send custom email notifying that the password reset has been completed. Please let me know ...
0
votes
0answers
45 views

Dynamically choosing Email Template with workflow or flow

So I have an ask from a user to be able to create,save and edit email templates. Editing, saving and creating is not an issue; it's the workflows tied to the templates that I'm having issues with. ...
1
vote
1answer
39 views

APEX error sending mail with email template

I am trying to send an email using an Assignment Template from my trigger when the status is changed by the appropriate team. I looked around and found 17047778: ...
2
votes
1answer
50 views

Display email template markup in VF without tags

I'm trying to include email template preview inside custom VF page, I've visualforce email template with messaging:htmlEmailBody only without plain text version. I created custom VF to get email ...
3
votes
1answer
35 views

Use fields from WhatID object in Email Template

I have apex code that sends out emails using templates. The code sets the RelatedTo id as a contact, and the WhatID as a custom object which is a child of contact. Sometimes the child object is a ...