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
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
193 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
418 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
154 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
936 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
479 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
136 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
474 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
402 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
609 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
269 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
151 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
6k 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
10k 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
2k 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
10k 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 ...
5
votes
3answers
487 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
674 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 ...
0
votes
2answers
703 views

visualforce email template attaches with url hack but template not executed

Visual Force Code: (See bottom for URL Hack)Thanks <messaging:emailTemplate subject="Deal Approval Requested" recipientType="User" relatedToType="Contract_Assist__c"> <messaging:...
4
votes
1answer
8k views

email template security

Can we secure email templates to restrict usage within an organization? We have a couple of email templates that we want to make available to only a couple of people in the organization and wondering ...
2
votes
1answer
2k views

VisualForce Email template: how to disable the Link from the outputField (of type reference)

Is there anyway to disable the link from the apex:outputField when using it in an email template? Code: <apex:repeat value="{!relatedto.RTS_Items__r}" var="o"> <b>Product Code:</b&...
5
votes
2answers
4k views

Update Salesforce Community Url to custom login page

I have below default welcome email template which redirects the users to standard login page but it doesn't goes to my new custom community login page. Hi {!Receiving_User.FirstName}, Welcome to {!...
4
votes
3answers
3k views

Is it possible to send email to an arbitrary recipient using a VF Template?

I suspect the answer here is "No", but I thought I'd ask anyway. Can I send an email, using a VFTemplate, to an arbitrary email address, as opposed to a Contact, User, or Lead? I need to send a ...
4
votes
1answer
3k views

Email Template Replace merge field

I have an email template which uses merge fields from a custom object. For reasons difficult to explain here, I have to write my own code to read the body of the email template in Apex, replace merge ...
2
votes
1answer
904 views

Add campaign information into lead auto response email

I thought this would be an easy one but its not working as expected. I have a custom campaign type that has a "Meeting Time field" and i want to include that meeting time in an automatic email that ...
2
votes
0answers
54 views

Email template Preview shows lots of records even though its not related to anything

I just want to know how does the Email template review work. I have created a VF email template and added few VF components in it. The email template related to Custom Object,and in VF components, I ...
1
vote
1answer
1k views

Related custom object with Mass/Single EmailMessage

I need to write an apex method that send an email which is related to a custom object. The email will use a template which used merge fields from the custom object. How can I specify the custom object ...
3
votes
0answers
142 views

What is the order of assignment/autoassociate and auto response with web-to-lead?

I have a scenario, I need to auto associate new leads into campaigns, and send a customized email to them. The auto-assignment and the auto-association both work perfect. However, the HTML template I ...
2
votes
0answers
275 views

single sign on org and approval emails

The more and more I deal with SSO I am finding it requiring special care for existing OOB functionality. When we send out an approval email we send the link of the oppty record to the user and ask ...
2
votes
1answer
2k views

Dynamically displaying, adding, and deleting attachments from email template before sending email

-> A custom link on the contacts page invokes a VF page -> This VF page simulates the Send an Email page while auto populating a predefined email template: <apex:page standardController="contact" ...