Questions tagged [email-template]

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.

Filter by
Sorted by
Tagged with
5
votes
1answer
1k 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
426 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 User....
1
vote
3answers
410 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 ...
3
votes
1answer
2k 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 ...
4
votes
1answer
4k views

Salesforce Visualforce 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
1k views

Attach dynamically generated visual force PDF to a visual force template

I have a requirement where I need to attach a dynamically generated VF PDF to an email generated with an email template. Though I am able to send the template, I am not able to send the attachment. ...
1
vote
0answers
234 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
262 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
278 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 ...
2
votes
1answer
813 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
435 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
358 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.
3
votes
1answer
970 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 https://salesforce.stackexchange.com/a/8745/2330
2
votes
1answer
124 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"> <messaging:...
1
vote
1answer
4k 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
732 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
1k 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 ...
4
votes
1answer
3k 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
3answers
754 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 ...
6
votes
1answer
1k 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? <...
2
votes
1answer
1k 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
1k views

Visualforce Email Template Not Showing Content

I want to send an email based on user specified language. For this we created an Visualforce Email Template with custom label: <messaging:emailTemplate subject="15 Days of Salesforce.com ...
0
votes
2answers
633 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 ...
2
votes
1answer
191 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 ...
5
votes
1answer
9k 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
852 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
1answer
366 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 ...
2
votes
1answer
187 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
3answers
901 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 ...
11
votes
1answer
634 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 ...
5
votes
1answer
2k 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 ...
1
vote
1answer
3k views

Issue in displaying related object fields in VF email template

We have a visualforce email template which has to be sent via work flow.We need to populate Case object information, related object of the Case called Big_W_Case_PO's fields and the Big_W_Case_PO's ...
1
vote
2answers
2k views

Receiving_User merge field problems in a single user email template

I'm trying to use Receiving_User fields in an email template for a single user. I know that Receiving_User is only supported for mass emails, but it "kinda" works for single users too. I'm getting ...
4
votes
1answer
169 views

Accessing DisplayName of OrgWideEmailAddress in Email Template

How can I insert the DisplayName of OrgWideEmailAddress in the email template like how we can access the fields of other objects? E.g. I can access the name of the user by using {!User.Name}. I tried ...
1
vote
1answer
1k views

How to round outputFields of type=Decimal in a VF email template?

I am working with visualforce template i am getting all decimal values in my mail but i want to round it in Max upto 2 decimals SubTotal $90.0000 Shipping & handling $2.000 Grand ...
3
votes
1answer
9k views

Adding link to a related record in HTML Email template

I'm trying to add a detail link to an HTML Email template, to link to a related record on the object being merged into the e-mail. I am aware of the process for adding a link/detail link for the ...
0
votes
1answer
3k views

Visualforce Email template If condition

I have 3 fields 1) shipping_type__c 2) Total_Shipping__c 3) CheckOut__c when shipping_type__c = 0 at this condition i want to show CheckOut__c values in visualforce template when shipping_type__c = ...
4
votes
1answer
2k views

Visualforce Email Template for custom fields

I have a custom object called Feedback that has a name field. I have set up an email alert every time a feedback is created. But I'm unable to add a link back to the feedback created(in salesforce) in ...
3
votes
1answer
600 views

Where is 'emailauthor.jsp' is coming from?

I've created a custom button sending email some time ago following these instructions: https://success.salesforce.com/answers?id=90630000000gtNyAAI I just realized i do not understand where this ...
0
votes
1answer
4k views

Can I change the notification email sent when transferring a record to a new owner?

Is it possible to change the contents of the email that is sent to the new owner of a record when someone transfers ownership and checks the 'Send Notification Email' box? I would like to provide my ...
1
vote
0answers
620 views

Why is the space character not displaying in this VisualForce email template?

This: <messaging:emailTemplate subject="Assignment for {!relatedTo.K__Resource__r.Name} Ends in {!relatedTo.K__ForecastP3EndDate__c - TODAY() -1} Days" recipientType="User" relatedToType="...
2
votes
1answer
545 views

Email - Edit Custom 'opencounter' Layout

How can I modify the layout in: <custom name="opencounter" type="tracking"> I'm trying to create a fluid email layout. When the screen size is adjusted for mobile viewing the exact target logo ...
1
vote
3answers
713 views

Email Templates selection based on Country of a record

I want to use email templates based on standard object (lead/contact) country. example, if Country 'USA' chose Template A, Country 'Canada' Choose Template B Automatically. Can this be achieved in a ...
2
votes
2answers
760 views

Create and select attachments and add them to an email template?

Here's the setup of my problem, and i'm not sure how to get started. initial screen -> my user is on a VF page and makes some HTML selections. Also, they select a number of notes and attachments. ...
6
votes
1answer
4k views

SingleMessage with TemplateId in Apex: need to add more recipients

I am writing code to send emails to contacts via Apex using templates. My issue is that I need to be able to copy these emails to various other users that are going to be determined at run time. This ...
1
vote
0answers
64 views

Remove username from Customer Portal Confirmation Email

I am attempting to modify the username of the confirmation e-mail for the Customer Portal that I have setup. I have created a custom login and am populating the @something.com portion of the username ...
2
votes
2answers
1k views

Add a logo to the approval alert template

Is it possible to add a logo (or otherwise customise) the standard Salesforce Approval Process e-mail template? I have "Enable Email Approval Response" turned on in this org, and so I'm receiving the ...
1
vote
1answer
2k views

Adding the case number and link to an email

If I am sending an email from within a case, how can I get the email to contain the case number and the link to the case automatically/by default?
1
vote
2answers
3k views

Visual force email template with related list records issues?

I am having lookup relationship between case and .Case_PO custom object. I am using site to create new case record with .Case_PO child record also. After creating a new case record with related list ...
3
votes
1answer
1k views

Formatting EndDate in VisualForce email template

So: {!relatedTo.K__EndDate__c} Gives me: "Wed Apr 02 00:00:00 GMT 2014" What would I use if I want: "Wed Apr 02 2014" i.e. suppressing the time part. Thx.