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
15 views

How do I parse a variable from my VF Page URL to my VF 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
18 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
13 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
14 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
34 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
25 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
24 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
15 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
27 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
12 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
14 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 ...
1
vote
0answers
34 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
20 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
36 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
28 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
23 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
21 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
25 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
34 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
32 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
44 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
24 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
16 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
30 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
33 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
26 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
17 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
30 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
20 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
68 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
106 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: ...
0
votes
1answer
76 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
89 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
18 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 ...
3
votes
1answer
62 views

vf email template - detail Link

In HTML email template, we can use {!Lead.Link} option to access the url inside salesforce. But i found this {!Lead.Link} can't be used in vf email template. I tried using {!relatedTO.Link}. But this ...
1
vote
2answers
52 views

Wrong merge fields in Email Template

I have a Case related email notification using a template like below. In my Case object I also added a Formula custom field, called Type__c that renders an icon per each Type. When the email is sent ...
5
votes
1answer
56 views

Setting Font Face for Visualforce Email PDF attachments “messaging:attachment”

I'm having lots of trouble setting font faces for VF Email PDF attachments (see my code below). I've tried the conventional "font" tag with no luck, even CSS doesn't work! What am I doing wrong? ...
0
votes
1answer
56 views

Community New User Email

I am having difficulties getting the Communities Welcome email to send to new users added to the community. What happens is that we insert a lead via a web-to-lead form that is inserted with a guest ...
0
votes
2answers
71 views

Vf Email Template

I want to send an email based on user specified language. For this we created an VF Email Template with custom label: <messaging:emailTemplate subject="15 Days of Salesforce.com Inactivity - ...
0
votes
0answers
114 views

Unit test error: INVALID_FIELD_WHEN_USING_TEMPLATE

I'm sending emails to internal users from a batch job using SingleEmailMessage. When I run the batch job everything processes correctly and the emails are sent correctly. I'm using two different ...
0
votes
0answers
47 views

how to handle Special Characters in salesforce email form?

In a VF page i am giving the input field value as >300. To send the email content to the user i am using tibco before sending the email content to Tibco, i am handling the all the html special ...
2
votes
1answer
99 views

How to remove random characters appearing in the VF email?

When sending the VF email template we are getting random characters appearing in the subject of the e-mail. Also i am getting this random character in the body of the email for the empty email which ...
1
vote
1answer
336 views

how to pass values from Visualforce Email Template to custom component

I have created a simple visualforce email template: <messaging:emailTemplate subject="** Inventory Wishlist Match Found **" recipientType="User" relatedToType="Inventory_Wishlist__c"> ...
2
votes
1answer
62 views

Sending Email Template to Lead on Creation of Event

I am having a little trouble sending an email to a lead using a template when an Event of type visit is created and again the day before the event. I can't use a workflow because ActivityDate is not ...
0
votes
0answers
51 views

Visualforce Email Template Image Broken in Outlook

We have an Visualforce Email Template that uses image tag to insert images and those images are broken/not visible in Microsoft Outlook for Windows (It works fine in Mac Outlook). Below is the code ...
0
votes
1answer
65 views

Different VF email templates trigged by picklist value?

I am slowly loosing the will to live at the moment, and I don’t know whether I am over complication the situation or not. Currently I have an object called “Certificates” Which sits on the contact ...
1
vote
1answer
41 views

List out of Bounds Visualforce email Template

This is driving me a bit insane. When I do a query run with the query editor and give it an id, it returns the values I need but for some reason, I am not getting anything in my email template when I ...
0
votes
1answer
31 views

Using custom field value in replyTo attribute of messaging:emailTemplate

Requesting some guidance here. Say there's a custom field Test__c...can be either text, preferably email field... Is it at all possible to use that field's value in replyTo ? Basically trying to ...
4
votes
0answers
76 views

JS Synchronous Calls - Email with Attachment

I'm trying to set up a JS button on a SFDC object record that sends an email to a recipient with a specific attachment from the Notes and Attachment related object. Would I theoretically be able to ...
4
votes
1answer
264 views

How to add line break in richtextarea field

I have a requirement to implement a user email signature in visualforce email template,and i have tried this code {!$User.Email_Signature_Rich__c} it's appering without line breaks in signature.How to ...