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
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
790 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
636 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
10k 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
863 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
373 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
188 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
1k 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
648 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
175 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
10k 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 ...
1
vote
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
614 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
654 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
553 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
747 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
765 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
5k 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.
1
vote
2answers
795 views

how to send an email from an Opportunity, with a snapshot of the Opportunity

how to send an email from an Opportunity, with a snapshot of the Opportunity. I have 5 opportunity record types.
1
vote
1answer
1k views

How to send a VF template but override the To address?

So we have a trigger that automatically emails a Case Contact when a new Comment is added. However for some users, we require that email to go to an alternate email address, NOT the one in the ...
2
votes
2answers
951 views

How to transfer url in email template

I embeded an url in email template, like this: http://www.abc.com?param1={!Account.Name} Sometime the account name would contain a blank, such as Allen li. Then we will get an url like this: http://...
5
votes
1answer
4k views

Hyperlink in VisualForce Email Template

I'm trying to create a conditional email template that will show fields based off ticked checkboxes. In the statements, I would like to include a link in standard HTML format Sample Text but the ...
1
vote
1answer
240 views

Combining EmailTemplates - no way to automatically merge fields of templates?

another newbie VS question. This is how far i got (pls cf picture) get a list from available templates from a certain directory add each selected template into editable textarea use the edited ...
2
votes
1answer
2k views

Text EmailTemplate…In PlainTextBody…{!User.FirstName}…Name Not Displayed

I have Query Regarding Simple Text Email Template.Here I have VF Page And Controller Class in that VF page I want to load Predefined Text Email Template.... Here is the VF Page Code.... <apex:...
1
vote
1answer
291 views

How to use TriggerSend with an existing e-mail template? Php Coding

I am having trouble figuring out how to do the following; Lets say I have a customer that comes to our site, and buys two of our products. They provide their email, first name, and last name. And ...
3
votes
0answers
1k views

Edit Custom Email Template before sending

I've setup several template emails that are the custom format. I'd like to be able to choose this template from a lead and edit before sending. Right now when I click the custom template it doesn't ...
4
votes
2answers
634 views

How to use another object in templete

Can we use other object's field in VF template, if yes then how? Please suggest.
3
votes
0answers
520 views

Mulilingual portal reset password notification email

I implemented the logic to reset a partner portal user password from a visualforce page. The form successfully resets the partner user's password and sends an email using this code in the ...
4
votes
3answers
4k views

Visualforce Email Template

I'm trying to create vf email template.I 'm getting the below error Error: Unknown property 'core.email.template.EmailTemplateComponentController.Opportunity' for opportunity-Product and OSF Order ...
3
votes
0answers
2k views

Effect of disabling “Send welcome email” checkbox in Customer Communities?

when you edit a Customer Community config and click the Email tab, you get the following setting: However, I've found that when I uncheck this checkbox, that same email template is still sent to new ...
1
vote
1answer
192 views

Modify a record when sending out an email template

Setup: The overall setup is that from Opportunity: I’d like to choose a specific email template Give the user the ability to update it. Once it’s sent, update the opportunity custom field with some ...
1
vote
1answer
47 views

Include “in X amount days” in workflow that triggers every 10 days until End Date?

I have a workflow that triggers when a record is created and sends and email 45 days before the end date, warning the Manager that the thing ends on that date. I'd like to use the same email template ...
1
vote
1answer
417 views

include an editable textfield in a visualforce email template

I've got a visualforce email template that sends invoices attached in PDF. In the PDF there has to be a blank textfield that users can edit to add comments to the invoice. So the attached PDF needs to ...
2
votes
1answer
2k views

Text in email should be bold

I'm writing a program where user inputs and email ID and i have to send an email to that email Id. but now my requirement is that some of that text needs to be in bold. Please tell me how to do it. ...