Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
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
775 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
905 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
3k 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
236 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
288 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
980 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
633 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
505 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 ...
3
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
188 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
410 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. ...
1
vote
1answer
142 views

Retrieving email by id and but throwing an error

I am trying to retrieving the email below code and returned as error using SAOP API (.NET). Is there any code issue here ? What is the the minimum input is required to retrieve email object ? I am ...
2
votes
1answer
930 views

Can I use the HTML in a LongText field in an email?

I have a LongText field that I'm about to change to a rich text to take advantage of some formatting, but when I got to switch it Salesforce asks if there's any HTML in it that I'm using in ...
1
vote
1answer
277 views

Lookup data using ID

I'm pretty sure this question is easy to solve but I can't figure it out and unfortunately haven't seen any questions on it either. Trimmed down, it comes to this: The object Campaign has a custom ...
1
vote
1answer
1k views

Adding an attachment to an Email Alert

I would like to add files attached to the record as an attachement to an Email Alerts triggered by a WFR. Does anyone knows if this is this possible?
1
vote
3answers
2k views

Hiding settargetObjectId while sending email..?

Hi I have used contact as settargetObjectId and whenever an email is sent this contact emailid also get copied in the email list.. Is there any way to put this contact emailid(settargetObjectId ) in ...
1
vote
1answer
457 views

Custom field is Percent(3, 6) and email template displays it to 13 decimal places

How is this possible? I would assume a VisualForce email template would by default display it to the number of decimal places it is defined as? How in this instance can it display a value that is ...
0
votes
1answer
1k views

email templates and change sets

If I'm moving email templates from one environment to another, do i need to include profiles? The fields within the environments should be the same, its just the email templates that differ. Any ...
1
vote
1answer
2k views

Send Notification emails when owner of account changes

I have a batch process which reassigns owner of an account based on certain conditions. Now i need to also send emails to previous owners of the account that the account is been reassigned. What is ...
3
votes
1answer
135 views

dynamically generate an email template based on a page layout?

we use a lot of email templates for notifying different teams in our org, which creates a lot of overhead in updating the email templates when ever a new field is added. Is there an app out there, or ...
2
votes
1answer
472 views

exacttarget: subscriber is missing required attribute

I have created template in Exact Target account. Added below attribute data in template. City Name : %%CityName%% State Name : %%StateName%% From the code, I added below code in SOAP API (using ....
2
votes
2answers
397 views

Sending email using custom template and using TriggeredSend

I created a template in Exact Target account. How do I send an email by referencing template I created and using TriggeredSend object function from SOAP API (in .NET) ? Just to add, How to associate ...
5
votes
2answers
2k views

Single Click reply to Approval Emails

Currently, to approve any salesforce record through email, you have to reply to approval email using Approved/Yes and it gets approve. I just want to skip the step of writing "Approved/Yes" for ...
3
votes
1answer
606 views

Why does my Apex visualforce email template change html hyperlinks in APEX Repeat

Why does my Apex visualforce email template change html hyperlinks in APEX Repeat Code for apex repeat: <apex:repeat var="QP" value="{!recipient.Quoted_Products__r}"> ...
2
votes
2answers
2k views

Who is the “Current User” when time based workflow email alert fires

Who is the "Current User" when a time based workflow fires in the future? I have Entitlement Milestone email alerts scheduled in the future, and the "From" (on behalf of) appears to be selected ...
6
votes
1answer
3k views

TEMPLATE_NOT_FOUND When workflow is fired from Communties

In a partner community I have a button which users click to accept a request. On the click of this button I perform an update on a record, which then causes it to meet some workflow criteria. At this ...
7
votes
1answer
260 views

When supplying a template parameter to EmailAuthor how can I make the email body editable?

This question concerns the native /_ui/core/email/author/EmailAuthor system. I can pass values to the form in the URL like so: p2_lkid = To field p3_lkid = Related to field template_id = ID of ...
10
votes
3answers
9k views

Visualforce HTML Email Template - Ability to Edit Text in Preview Before Sending

I've created a Visualforce HTML Email Template with multiple language translations that is associated with a Case. When selecting the template, the customer service rep will occasionally need to ...
1
vote
1answer
2k views

Visualforce email templates- date time, and timezone rendering for a date field? [duplicate]

I have a field on my opportunity which is a date. when I add it to my email template, it renders as date time. obviously, i want just the date to render. Help? <messaging:emailTemplate subject="...
8
votes
1answer
149 views

How can I reproduce the EmailAuthor native SFDC application?

I'm comfortable with sending emails using APEX and using mailmerge within that process. What I want to do now is load an email template, mailmerge it automatically using a predetermined contact ID and ...
8
votes
3answers
4k views

Can't set toAddresses on email when templateId defined?

Question Did something change recently with the SingleEmail methods that prevents using setToAddresses() when a template is used? Background I need to send an email to a user based and pass in the ...
1
vote
3answers
3k views

Email Template Creation

I want to create an email template for custom object. It should display certain fields of the custom object depending on some conditions like the value of the city or country fields. How can I do ...
3
votes
1answer
2k views

Approval process step field update doesn't appear in same step's Visualforce email template?

Two step approval process on custom object Foo__c initial value of Foo__c.Status__c is 'Submitted' Approval Step 1 actions are threefold: Field update on Foo__c.status__c = 'Step 1 approved' Text ...
2
votes
1answer
3k views

Messaging.sendEmail() returns an error that the target object Id is null when it was set

I don't understand why I would get the following error when in code it is being set and when I use a debug statement to log the SingleEmailMessage, it show a valid value for the field. ...
5
votes
1answer
5k views

INVALID_ID_FIELD, WhatId is not available for sending emails to UserIds

I am trying to run below code in trigger. List<User> recipients = [SELECT id FROM User WHERE UserRoleId=:operationsRole.Id]; for (User usr:recipients) { Messaging.SingleEmailMessage ...
6
votes
2answers
3k views

How do I insert an image from a Rich Text field in an html email template

I have rich text area field with an image but when I am trying to include the field using the merge field in the html email template ...image is not displaying in email.Any ways to display image from ...
3
votes
3answers
9k views

Insert Attachment into Visualforce Email Template

this question: says that it is "hard" to put a component inside a visualforce email template because ' needs to be a child of component.'. Yet, is there a way to make this work? We also need to ...
4
votes
2answers
3k views

PDF generation failed. Check the page markup is valid

I am trying to create a table using "apex:OutputPanel" but I get the error message "PDF generation failed. Check the page markup is valid." Any ideas how I can fix it? Here is my code below: <...
2
votes
1answer
1k views

Can I sub-query for EmailTemplates from Folder?

In a trigger, I want to query all the EmailTemplates in a given folder into a Map, but don't want to hard-code the FolderID. I'm trying to do it with a subquery, but I think the polymorphic child ...
6
votes
2answers
9k views

Images not showing up in Email sent using email template

I know this issue is out there and I went through most of the "image not being displayed in email" questions, but nothing is helping me so far. I am sending some images in my email. In my controller ...
4
votes
3answers
467 views

Some recipients see lines of code in e-mail template

I coded an e-mail template in Visualforce, however, some recipients see lines of code in the the e-mail that's sent to them. Please see example below: Hello , Products to be include in the quotation ...
1
vote
1answer
2k views

Can we get approval process fields in Visualforce email template?

Can we get approval process fields in Notification (Visualforce)template? if yes, how to get the current approver? I need to change the email verbiage based on the approver.
0
votes
0answers
666 views

Changing the Recipient Type in email

I m doing and email, using visualforce and i would like to ask you if its possible that the Recipient Type is a field from the masterapplication and not the standard "user, contact, lead", because my ...