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
0answers
24 views

Email template subject not populating

I have a web service class which is called from a quote button, and I'm passing the quote Id to the class. I am creating a single email message object and I'm setting an email template for it, but ...
0
votes
0answers
20 views

Print AMPscript Variable inside HTML <tag> as attributes

So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content areas ...
0
votes
1answer
40 views

How to get Email Template executed body

I am working on sending email by using 3rd party application like Amazon SES When i query for perticular email template i am getting body whaever the email templated had like Email Template body ...
1
vote
1answer
20 views

problem putting an rtf field into visualforce html email template

I want to create an email from a template and insert the contents of an rtf field from a record into the email. To this end, I created a visualforce email template (see attached code) My problem is ...
1
vote
2answers
32 views

creating an email based on another record

I want to be able to share the contents of a field from a particular record with an email recipient. Rather than going to the record and copying the field value, I would like to be able go the the ...
0
votes
0answers
14 views

unmask encrypted field salesforce in email templates

I need to send an email to user with encrypted field unmasked. Is it possible? I am using custom component and inside email template to fill in the data. What i see is **** the masked value for the ...
0
votes
1answer
32 views

HTML Email Template URL Encode

I am creating a html template with a link that includes merge fields as params. Example: <a href="http://example.com/?region={!Contact.Region__c}">Click me</a> I wish to URL encode the ...
2
votes
1answer
17 views

Unmanaged component in Managed Email template

I'm having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this: ...
0
votes
1answer
19 views

Attaching email template to Messaging.SingleEmailMessage throws the error

while calling below code of sendEmail throwing an error as: First error: SendEmail failed. First exception on row 0; first error: INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified ...
1
vote
0answers
40 views

Can't access merge fields in email template

We have a custom object XYZ whose OWD is set to private. In our salesforce community we have an apex class declared with the without sharing keyword as a result we are able to access records owned by ...
0
votes
3answers
38 views

Can I take the first 15 digits from a field using the API Name in an email template in Salesforce?

I'd like to use a field on my email templates, but not the whole field, just the first 15 digits of the field. Is there a way with using the API Name in the template to limit to which characters are ...
0
votes
2answers
25 views

Send Email with Case Email Template

I would like to send an email template ,with merge fields from case, even to a fixed address'test@email.com'. Template: Hi, this is case {!Case.CaseNumber}. Code: public void ...
4
votes
2answers
98 views

Responsive Template Issue

We've been working on responsive email templates in Marketo, Mail Chimp, Campaign Monitor, and a variety of other products for some time now. All have their perks and issues, but we've encountered a ...
1
vote
1answer
58 views

username not populating in Email template ({!Receiving_User.Username}) customer portal

I am working on communities customer portal. I have created a email template for reset password for customer. when ever email triggered username is blank for username am using ...
0
votes
1answer
13 views

Download & Email Case Details using templates

I would like to know if it is possible to download case details or email the case details based on email templates to other users(call center users) on the case details layout. Conga Composer is ...
3
votes
1answer
51 views

How could {!Contact.FirstName} work on email template used for Lead Record Creation

I have a email template with {!Contact.FirstName} merge field in it, this email template is used in an email alert used in a work flow rule that gets triggered when lead is created through web to lead ...
2
votes
2answers
37 views

How do I parse a variable from my Visualforce Page URL to my Visualforce email template?

I need to get a string into my Visualforce email template. I have attempted to parse it over the URL as I thought it would be the easiest way but I'm not sure. I am using sendMail and sending the ...
0
votes
1answer
39 views

getSalesforceBaseUrl() in a Custom Email Template

I've created a Custom Email Template. In the HTML Email Content, a few fields are displayed and I've created a button with a link <a ...
0
votes
1answer
16 views

Flow to Email Author

I would like to plan a button in my Opportunites page which leads to a flow, the flow will give the user three radio boxes, depending on the option selected this should lead to a Email Author page ...
1
vote
2answers
101 views

Adding Image to Email Template (Custom With Letterhead)

I am trying to add images to a custom HTML email template using a letterhead. My letterhead images (header and footer) works just fine. However, when I add an tag in the body of the template, it ...
0
votes
2answers
57 views

Send emails from Email Service address?

I have an email service which parses responses if my customers send emails to the Salesforce generated email. I want to know whether it is possible to send out emails from the Salesforce generated ...
1
vote
2answers
43 views

how to send an email alert to an account owner's manager

I am trying to configure an email alert to be able to send out to the manager of the account owner of an account. To this end I have set up a field on the account object that stores the email of the ...
0
votes
2answers
43 views

SetTargetObjectID dynamically

I have written a class that sends an email and I have referenced the object id (opportunity) in the URI for the VP page. So how can I make a variable that grabs that id so I can use it in my sendMail ...
1
vote
0answers
21 views

Is it possible to have email sent with automatically user id inserted different that recipient user?

Is it possible to have email sent with automatically user id inserted different that recipient user? Firstly I have tried the following code Messaging.SingleEmailMessage mail = new ...
2
votes
1answer
50 views

Email Alert : Rejection Comments

I have a rejection notification email template that is using the merge field '{!ApprovalRequest.Comments}' to display the rejection comments as entered by the user. The rejection comments are ...
0
votes
0answers
17 views

Email Templates, Custom Components and Web Service - avoid repeated calls to webservice that return invariant results

I have an email template. Which requires to send data from a web service. Current scenario is i call template for each contact i need to send email to. Template is linked to a custom component and a ...
0
votes
1answer
15 views

Referencing a Partner through AccountToId but can't reach Name

I am writing a VF email template which should build a table of the related partners to the opportunity. when I pull the partner details from the {!relatedTo.Partners} object I can't reach [Name] for ...
2
votes
0answers
72 views

Dynamic Email Template Body

I have a requirement where I need to send the email template and also allow the use to change it and then send the content. I am able to send email and attach a VF template dynamically. But I am not ...
2
votes
1answer
24 views

Is it possible to modify Salesforce email template type

My question is regarding the possibility of modification of email template type(Text, HTML, Custom, Visualforce) after an email template has been created. Basically, I have an existing text template ...
3
votes
0answers
69 views

Can we conditionally render text in a non-Visualforce email template on a picklist?

I'm working on designing an HTML template as a possible workaround to a problem with Visualforce templates refusing to send when triggered from a workflow rule where the ownership changes, and the old ...
4
votes
1answer
48 views

Can we specify “without sharing” in Visualforce email templates?

We have a workflow rule that triggers when ownership of a record changes and certain conditions are met-- part of the criteria is ISCHANGED(OwnerId), which causes the workflow to perform its actions. ...
2
votes
0answers
86 views

Output of VisualForce Component inside VisualForce Email Template Gets HTML Encoded

I have a Visual Force component inside a Visual Force Email Template with the intention of producing an HTML email in which the component is reponsible for rendering some of the HTML. What seems to be ...
1
vote
1answer
35 views

Rendering text or image in Custom Email Template (HTML Version)

I have a custom email template (html and text versions). I want to render certain parts of the template based on a multi select picklist value. I have to render the below 'td' when ...
1
vote
3answers
50 views

Visualforce Email Template rendering false email not sent

I have a visualforce email template. I use a visualforce component in it and an apex controller to display some data in the email. Everything is fine till here. Now, I want to render some part of ...
2
votes
0answers
96 views

Email Alert using VisualForce Email Template Produces Empty Email

I want to send an email on creation of a record. The email must contain information about the record plus certain related detail records. I chose a VisualForce email template with a VF component ...
1
vote
0answers
44 views

Salesforce VF Email Template {!Recipient.Name} does not have the correct value

I have an object called 'Request'. This object has three lookup fields 'Reviewer 1', 'Reviewer 2', 'Reviewer 3' (User object); besides other non-relevant fields. I have created a Workflow rule, which ...
1
vote
1answer
98 views

Attach dynamically generated visual force PDF to a visual force template

I have a requirement where I need to attach an email template to a dynamically generated VF PDF. Though I am able to send the template. But I am not able to send the attachment. Please suggest how can ...
1
vote
0answers
41 views

Display currency field on vf email template as it appears on standard page

I am creating a visualforce email template where i want to display the currency field as shown above. Is it possible?
1
vote
0answers
17 views

Salesforce Email and tokens

So I inherited the Administration of Salesforce from a previous colleague. We use Salesforce tokens to dynamically populate Contact/Lead names, phone numbers and email address and Contact/Owner names, ...
1
vote
1answer
42 views

Do emails sent by workflow rule count towards processing time?

Our app contains a workflow rule that sends an email to the user when a case or lead is assigned to them. The email template contains a component with a controller that uses soql to populate the email ...
1
vote
1answer
57 views

using Superscript on Preheader inside the AMPScript

I use AMPScript on PreHeader and Subject for emails on Exact Target. I want to add Superscript on one of them,but just display # as a usual symbol, it doesn't do Superscript on that. I am trying to ...
1
vote
2answers
38 views

Updating or Deleting a record from a link in Email

The use case is - A subscriber (contact) is sent an email regarding a specific product to which he's subscribed to. At the end of the email is "Unsubscribe" button through which he can unsubscribe. ...
0
votes
1answer
20 views

Email Alert when a record's status not changed

Is it possible to build a solution that will send out an email when the status of a Case Record has not been changed for a certain amount of time ?..let us say 24 hours.
2
votes
1answer
41 views

Can I merge an email template in Apex, and also inspect it from code

Can I get the merged email template in Apex without sending it? I'd like to inspect the generated email first. I think I found the answer on http://salesforce.stackexchange.com/a/8745/2330
2
votes
1answer
22 views

Custom Component inside email template displaying error at top of page

I have an email template that contains a custom component with code: <messaging:emailTemplate subject="Your Recent Order" recipientType="Contact" relatedToType="Order"> ...
0
votes
0answers
113 views

Can you add a link in a Visualforce email template that runs a custom button?

I have created an Execute Javascript custom button located in the Approval Requests object. This button claims ownership of an Approval Request (for Queues) and then takes the user to the ...
0
votes
0answers
225 views

Cross Object Merge fields in HTML Email Template

I am trying to create an email template for my contact object, but I need to refer to some fields of related objects. My set up is as follows: Contact: Name, Email Patient__c: Type Disease__c: ...
1
vote
1answer
140 views

Custom Button- Create PDF

How can I create a custom button create pdf to add a Email template? I try to use this example: /_ui/core/email/author/EmailAuthor?p2={!Stock__c.Id}&rtype=00Q&retURL=%2F{!Stock__c.Id} But ...
1
vote
1answer
166 views

How to increase email subject line character limit from 100 character

I have read that Salesforce has increased character limit of subject line from 80 to 255. One can check here. I am having a custom object and from there I am trying to send a mail. This mail has a ...
0
votes
0answers
27 views

How can I insert a record link into an email template that will work for a Community User?

I want to use workflow to send an email to a Community user that includes a link to the record I am referring to. If I use {!object.Link} it directs them to the standard org login page, not the ...