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

Sending email with javascript on custom button

I am trying to select the appropriate email template using javascript on a custom button. Here is a stripped down version of my code: var template; var type = "{!My_Custom_Object__c.My_Field__c}"; ...
3
votes
1answer
23 views

Using a component to add attachments to visualforce email template and showing email link

We are trying to add attachments to an email template using a component. The code in the email template is: <messaging:emailTemplate subject="My Subject" recipientType="User" ...
1
vote
0answers
16 views

How to Attach article related list corresponsing to mail subject in notification email when case is logged from email?

When case is logged from email, Notification email is received to the person who logged the case. This notification mail is sent to user with help of workflow which uses standard template. As per my ...
2
votes
2answers
25 views

How can Email Template be created in unit tests?

Can I create an Email Template as part of the unit test? If yes, how?
3
votes
3answers
43 views

How to Use the 'From' Address in Email Template like 'no-reply@my-domain name'

i created one custom template. once send the Template to my mail id using Send Test and Verfiy Merge Fields button. i get the from address like from:*Me mail Id*.but how can i impement no-reply@my ...
0
votes
0answers
16 views

Sending email autoresponse using custom visualForce template not working

When User logs case from Email, Workflow triggers notification email to that user on case creation. Presently this workflow uses standard template. And it was working fine. To add some functionality, ...
1
vote
1answer
43 views

how to prevent the system generated “Customer Portal: Customer Portal Reset Password (SAMPLE)” Email Template

i implemented the logic for generating Reset Password Custom Email Template for custom portal user in Apex. once the user reset the password from FrontEnd(PHP Form) using UserName now our code ...
2
votes
0answers
37 views

Recipient User Language email alert in workflow

How to get the recipient's language in a visualforce email? I'm trying to use this property: language="{!recipient.LanguageLocaleKey}" But when the email is sent, the recipient object is the ...
4
votes
1answer
47 views

Can you embed (not link) an image in an email template?

Is there any way to actually embed (not link to) an image in an email template in salesforce? What I have in mind would create an email with a 'Content-Type: text/html; charset="us-ascii"' in which it ...
1
vote
0answers
28 views

Ugly format of Email generated by EmailTemplate saved as Activity

I have written some code that sends an email based on an HTML based email template to contacts and stores a copy of the email as an activity. I noticed that the content of said email in the activity ...
7
votes
2answers
83 views

How to do email relaying in a safe way?

We want to use email relaying for our outgoing mails, to avoid email spoofing - aka sent via:1235434...@salesforce.com. From the official documentation I learned to use an unsecured SMTP server to do ...
1
vote
1answer
114 views

Scheduling a visualforce page as CSV

I am posting my approach, but still unable to send the VF page data as email attachment. scheuler + batch : global class Schedule_report implements Schedulable { global void ...
0
votes
1answer
30 views

How to receive the EmailTemplate Images in Email?

This is my custom text template code,i load the image in Documents and copy the image url and paste in src.But i didnt receive the images in my email ,just it shows text only........How to solve this? ...
1
vote
1answer
84 views

send email button from custom object

I am a newbie, and that's the probably reason why I am lost with this problem. I have two email templates created (one for students, and another for professorial). There is a custom object, and I need ...
0
votes
1answer
88 views

Custom Send Email Button With “Hidden” Email Template

Anyone have an idea on how to have an Email Template in Salesforce which most Users "cannot see" but which they can use to send to clients? This would be done via a simple Custom Button: ...
6
votes
3answers
71 views

How to determine where an email template is being used?

We have some email templates in our email templates folder, but I'm not sure where they are being accessed or used. How do I investigate this? I looked into the emailTemplate table, but it didn't ...
0
votes
1answer
42 views

How to specify recipient name in text email to user?

Question How can I add the first name of a user email recipient to a text email template? Background I'm building an approval email template. The same template is used for various approvers which ...
2
votes
1answer
194 views

passing values from VF page to component controller..?

VF Page component class Not getting value of soID.query works if i pass hard coded ID.Please someone tell me where i am wrong..**The constructor gets called first, before any variables are set. I ...
0
votes
0answers
9 views

Removing an email template from a managed package

Is it possible to remove an email template from a managed package release? I used to want to distribute a template but I don't use it anymore so it just redundant.
3
votes
1answer
49 views

Upgrading email template

I have a package and make changes to an email template. Obviously, if I uninstall previous versions of the package and install a new version the template everything will be hunky dory. But, if I ...
3
votes
1answer
34 views

Is it possible to define constants in an email template?

I am using an email template with a massive number of URLs. It has go to the stage where I'd like to define the URLs on the top of the page once and the use them in the template (some of them are used ...
2
votes
1answer
66 views

Spacing issue in Email Template

We have created a Custom(No Letterhead) email template with the name “B2AckReply” under “Unfiled Public Email Templates” and assigned it to Default Response Template in Web to Lead Settings. There is ...
2
votes
1answer
183 views

Sort Related list on visualforce email template

I have a visualforce email that show all case comments within a case. I'd like to sort the comments by created date (which is one of the columns). How can I achieve that? ...
4
votes
2answers
345 views

VisualForce page to allow inline editing of EmailTemplate HTML

Thanks for taking a look at my problem. I am building a VisualForce page to email all CampaignMembers associated with a Campaign record. Everything is working except for one little thing: I have an ...
2
votes
1answer
118 views

Pasting an image into the template of an outbound email

We are currently using the standard frame-based email templates which are supplied by SF. In one of our applications we occasionally need to manually create an email to send out to clients regarding a ...
4
votes
2answers
84 views

How to send an email before delete record using Email Template

I would like to send an email by using email template before delete a specific record. I'm using a before delete trigger and I receive the email, the problem is that the email is almost empty, without ...
9
votes
3answers
249 views

Test case failures due to VF email template

First, a little background information: I'm working on an end-to-end custom quoting solution that leverages the standard Quote object. We also utilize Sterling CPQ, which serves as the end-state for ...
2
votes
1answer
31 views

How to add ContentVersion data to an outbound email from a Trigger

So I have the following class: public static void sendmail(String documenttitle) { List<Id> contactids = new List<Id>(); List<user> con = new List<User>(); con = ...
1
vote
1answer
65 views

Dynamic reference to a property in an email template

In an email template it is possible to reference attributes by doing... "{!relatedTo.opportunity__r.CloseDate}" However, if the attribute must be in your model. If you did, ...
0
votes
1answer
80 views

Office Word add-in error

A user recently started getting the following error when using Salesforce.com Office Edition Word add-in to try and open (and subsequently edit) a mail merge template: An internal server error has ...
1
vote
1answer
47 views

How to Customize the Email template on chatter posts

I want to customize the email template sent on the chatter post of the record with the @user full name to have some fields from the record. Is this possible, or how can I achieve this? Please help. ...
0
votes
1answer
31 views

Building up URL to include package name in email template

I can put a hyperlink to an Opportunity in an email template by doing: <a href="{!LEFT($Api.Partner_Server_URL_140, FIND('.com/',$Api.Partner_Server_URL_140)+3)}/{!opportunityId}> link ...
0
votes
1answer
42 views

Integrating an image into a email template using a component

Thanks to a good steer in this thread I have managed to get an image into an email template that I can package up and put in any org. My design: Stores the image as a document Uses a component ...
1
vote
1answer
59 views

Set parameter in email?

Regarding a VisualForce email template, I know it is possible to setWhatId(), setSubject() and range of other things in Messaging.SingleEmailMessage. But I just want to set my own parameter. Let me ...
1
vote
2answers
42 views

Null in aggregate query

I have an image stored as a document. I put this image in an email template and reference it by doing: <img id="toplogo" src="{!LEFT($Api.Partner_Server_URL_140, ...
1
vote
1answer
35 views

Adding email to a package

I am trying to create an unmanaged package. When I try to add it, I get: "My Personal Email Templates" and "Unfiled Public Email Templates" cannot be added to a Package and are not shown in this ...
0
votes
1answer
130 views

Complex if statement in visual force email template

I need to check two things and based on outcome display some text. The two things are that the lastModified date of an opportunity is before one date and after another I try: <apex:outputPanel ...
0
votes
1answer
51 views

Displaying someting in email template based on a Date value

I am using a visual force template and want to add some logic which will decide whether to display something based on a date field in an Opportunity being less than a certain value. I try: ...
0
votes
1answer
84 views

Need to get a numeric value from number field in email

I have a custom numeric field: NumberOfOppsWon__c. I tried to put in some conditional logical in my email template based on its value being greater than zero. <apex:outputPanel ...
1
vote
1answer
51 views

Logic to display table rows

I am display table rows in my email template... <tr> <td>{!relatedTo.opportunity__r.name}</td> <td>{!relatedTo.opportunity__r.stageName}</td> </tr> ...
1
vote
1answer
206 views

Render a Salesforce Email Template in a Visualforce Page

I need to be able to load and render an email template in a visualforce page. What are my options here? I understand that loading it is as simple as querying the EmailTemplate table. Now how do I ...
0
votes
0answers
24 views

Problem with link in campaign mail template

I have created a campaign and associated mailing template for a mass mailing which attaches a link to a custom form assembly object. The link shows in the actual mail template, but when clicked on in ...
2
votes
1answer
61 views

How to create letter with related data?

I want to create a letter that can be sent via email or saved as PDF (or in the worst case exported as csv). The data for the letter comes from the following related objects: The important object ...
1
vote
2answers
216 views

Get currency symbol in Visual Force Email Template

I need to get currency symbol in visual force email template. I want it to be the currency the user is using. I check the docs here: ...
0
votes
1answer
85 views

Adding order and a filter to data in a table in email template

In my email template, I am displaying entities in a association in table, doing the following: <table border="0"> <tr> <th>Opportunity</th><th>Digest ...
2
votes
2answers
139 views

Date format in email template

I need to format a date field in Visual Force email template so that it is of the form: December 5, 2012 I check date format guidelines in force documentation and find this: ...
1
vote
2answers
29 views

Removing trailing decimal in email

I am displaying attributes that are of type Number (18,0) in an email using a Visual Force template. I am referenced the attributes in the template in the normal way. However, they are displayed as: ...
1
vote
0answers
71 views

Is it possible to customise the Meeting Request functionality?

I would like to customise the following aspects of the meeting request functionality in salesforce. Which if any of these is possible? Change the logo on the email. - This is possible Change the ...
2
votes
2answers
356 views

Get VisualForce Email Template as Blob

Similar to how we can use apex to get the blob value of a VisualForce page, can we also do this on a VisualForce Email Template? We need to get the rendered template into an attachment record in ...
0
votes
1answer
181 views

Trying to put server name into a URL for email template

I am using a visual force template. I can put the origin server in the email by doing: {!LEFT($Api.Partner_Server_URL_140, FIND(".com/",$Api.Partner_Server_URL_140)+3)} and when I an email sent ...

1 2