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
0answers
11 views

How to set multiple “setwhatIds” and “setTargetObjectIds” in salesforce

String[] bccAddress = new String[] {'contact@testcompany.com'}; Messaging.MassEmailMessage CPMail = new Messaging.MassEmailMessage(); CPMail.setTargetObjectIds(emailRecipientsList); ...
0
votes
0answers
8 views

can setTemplateId be used along with SetHtmlBody for the following code?

public EmailMessageWrapper(String fromAddr, Id toAddrId, String sub, Map<String, String> mapSubjectParams, Map<String, String> mapBodyParams) { this(fromAddr, null, toAddrId, null, ...
1
vote
1answer
13 views

Using component to list rows from related object

I have created a visualforce email template and I would like to display rows from a related object ORC__c which belongs to the Account object. The email template would be selected like so Contacts > ...
1
vote
1answer
19 views

Listing related data in custom email template via component

I am creating an email template which will be sent to individual contacts, the template needs to list rows from a related object. I have created the relevant component and class which I believe would ...
1
vote
1answer
8 views

Email scheduler unable to include the letterhead template for sending emails through scheduled jobs

Email scheduler unable to include the letterhead template while sending emails through scheduler. The header and footer not displayed on emails recieved. Only the dynamic htmlValues can be seen in ...
1
vote
1answer
15 views

Visualforce Repeater Order

What order does the VisualForce Repeater return information in? I'm making a Visualforce email where the aim is to retrieve the most current record of information in a related object to the one which ...
2
votes
0answers
22 views

Render based on TemplateId [duplicate]

I have a requirement to show an apex page message "XX YY" if the selected template id to email is "Update Status". (This message needs to be displayed when they make the selection not when they click ...
2
votes
3answers
223 views

How we can mark email as “High importance”

can we mark outgoing mails to high importance either by workflow or by apex code. The way we do in outlook.
0
votes
0answers
20 views

Merge fields not populating Email Template (HTML)

Some of my merge fields are not populating. When I do a test and verify merge fields, Some of my merge fields from the Lead object fills, others are completely ignored. What could possibly be causing ...
1
vote
0answers
17 views

SendMail() from .NET custom html combined with templateId

Is there any way to use sendMail() via SOAP API but combine using VisualForce template within Salesforce and passing additional an object to it or additional html from my .NET app. At present I'm ...
0
votes
1answer
10 views

Custom Quantity into VF email

Hello I have created a custom field for Quantity(under Order Product object) to get the number as integer. Through the formula-->number-->decimal=0 and had the Standard field Quantity. The result ...
0
votes
2answers
272 views

Line break using <br> and not<p>

I am trying to get a line break so the result would be like normal text just changing a line not paragraph. I am using and but I still get spaces like a paragraph between my lines. A snippet of my ...
0
votes
1answer
11 views

Dynamic domain/link in Email Alerts

Scenario: I am using Salesforce sites to display a form where a user can enter some data. When a user finshes, I have an email alert setup with a link in it to send the user to another page on the ...
0
votes
1answer
19 views

My user credentials into a visualforce email

Hello I have created a Visualforce email for my division. I would like my user credentials to appear at the end of the email. If you look the attached file of an example from normal email in gmail. I ...
0
votes
0answers
29 views

How can I send an email via Visual Flow that includes a record link?

I am fairly new to Flows and am working through a flow that sends an auto-notification email from a task, but rather than use an existing email alert to send the email, I am trying to build it within ...
0
votes
0answers
42 views

SingleEmailMessage with Visualforce Template doesnt work when setTargetObjectId is a NON visible community user?

Setup is as follows: A community User (UserA) is creating Events with Accounts (AccountB) (manually shared via Apex) and an email invitation should be sent to the Account Users (UserB). A trigger ...
1
vote
1answer
45 views

Exact Target Template Styling Issue

I'm developing an Exact Target email template for a client, and I'm running into an issue with the content editor. The email template has a specific design, but when I make parts of it into content ...
1
vote
0answers
52 views

Email template subject not populating

I have a web service class which is called from a quote button, and I'm passing the quote Id to the class. I am creating a single email message object and I'm setting an email template for it, but ...
0
votes
0answers
43 views

Print AMPscript Variable inside HTML <tag> as attributes

So I am using ExactTarget templates and content areas to build my emails. In my templates I have AMPscript variables defined in the < head > and that will determine how elements in my content areas ...
0
votes
1answer
70 views

How to get Email Template executed body

I am working on sending email by using 3rd party application like Amazon SES When i query for perticular email template i am getting body whaever the email templated had like Email Template body ...
1
vote
1answer
33 views

problem putting an rtf field into visualforce html email template

I want to create an email from a template and insert the contents of an rtf field from a record into the email. To this end, I created a visualforce email template (see attached code) My problem is ...
1
vote
2answers
36 views

creating an email based on another record

I want to be able to share the contents of a field from a particular record with an email recipient. Rather than going to the record and copying the field value, I would like to be able go the the ...
0
votes
0answers
23 views

unmask encrypted field salesforce in email templates

I need to send an email to user with encrypted field unmasked. Is it possible? I am using custom component and inside email template to fill in the data. What i see is **** the masked value for the ...
0
votes
1answer
101 views

HTML Email Template URL Encode

I am creating a html template with a link that includes merge fields as params. Example: <a href="http://example.com/?region={!Contact.Region__c}">Click me</a> I wish to URL encode the ...
2
votes
1answer
24 views

Unmanaged component in Managed Email template

I'm having some trouble editing the content of a Managed Email Template, I can quite easily modify the content of the Email Template, but when I wish to refer to an unmanaged component, like this: ...
0
votes
1answer
104 views

Attaching email template to Messaging.SingleEmailMessage throws the error

while calling below code of sendEmail throwing an error as: First error: SendEmail failed. First exception on row 0; first error: INVALID_FIELD_WHEN_USING_TEMPLATE, When a template is specified ...
1
vote
0answers
66 views

Can't access merge fields in email template

We have a custom object XYZ whose OWD is set to private. In our salesforce community we have an apex class declared with the without sharing keyword as a result we are able to access records owned by ...
0
votes
3answers
41 views

Can I take the first 15 digits from a field using the API Name in an email template in Salesforce?

I'd like to use a field on my email templates, but not the whole field, just the first 15 digits of the field. Is there a way with using the API Name in the template to limit to which characters are ...
0
votes
2answers
52 views

Send Email with Case Email Template

I would like to send an email template ,with merge fields from case, even to a fixed address'test@email.com'. Template: Hi, this is case {!Case.CaseNumber}. Code: public void ...
4
votes
3answers
147 views

Responsive Template Issue

We've been working on responsive email templates in Marketo, Mail Chimp, Campaign Monitor, and a variety of other products for some time now. All have their perks and issues, but we've encountered a ...
1
vote
1answer
104 views

username not populating in Email template ({!Receiving_User.Username}) customer portal

I am working on communities customer portal. I have created a email template for reset password for customer. when ever email triggered username is blank for username am using ...
0
votes
1answer
17 views

Download & Email Case Details using templates

I would like to know if it is possible to download case details or email the case details based on email templates to other users(call center users) on the case details layout. Conga Composer is ...
3
votes
1answer
81 views

How could {!Contact.FirstName} work on email template used for Lead Record Creation

I have a email template with {!Contact.FirstName} merge field in it, this email template is used in an email alert used in a work flow rule that gets triggered when lead is created through web to lead ...
2
votes
2answers
54 views

How do I parse a variable from my Visualforce Page URL to my Visualforce email template?

I need to get a string into my Visualforce email template. I have attempted to parse it over the URL as I thought it would be the easiest way but I'm not sure. I am using sendMail and sending the ...
0
votes
1answer
90 views

getSalesforceBaseUrl() in a Custom Email Template

I've created a Custom Email Template. In the HTML Email Content, a few fields are displayed and I've created a button with a link <a ...
0
votes
1answer
17 views

Flow to Email Author

I would like to plan a button in my Opportunites page which leads to a flow, the flow will give the user three radio boxes, depending on the option selected this should lead to a Email Author page ...
1
vote
2answers
426 views

Adding Image to Email Template (Custom With Letterhead)

I am trying to add images to a custom HTML email template using a letterhead. My letterhead images (header and footer) works just fine. However, when I add an tag in the body of the template, it ...
0
votes
2answers
96 views

Send emails from Email Service address?

I have an email service which parses responses if my customers send emails to the Salesforce generated email. I want to know whether it is possible to send out emails from the Salesforce generated ...
1
vote
2answers
95 views

how to send an email alert to an account owner's manager

I am trying to configure an email alert to be able to send out to the manager of the account owner of an account. To this end I have set up a field on the account object that stores the email of the ...
0
votes
2answers
93 views

SetTargetObjectID dynamically

I have written a class that sends an email and I have referenced the object id (opportunity) in the URI for the VP page. So how can I make a variable that grabs that id so I can use it in my sendMail ...
1
vote
0answers
28 views

Is it possible to have email sent with automatically user id inserted different that recipient user?

Is it possible to have email sent with automatically user id inserted different that recipient user? Firstly I have tried the following code Messaging.SingleEmailMessage mail = new ...
2
votes
1answer
70 views

Email Alert : Rejection Comments

I have a rejection notification email template that is using the merge field '{!ApprovalRequest.Comments}' to display the rejection comments as entered by the user. The rejection comments are ...
0
votes
0answers
24 views

Email Templates, Custom Components and Web Service - avoid repeated calls to webservice that return invariant results

I have an email template. Which requires to send data from a web service. Current scenario is i call template for each contact i need to send email to. Template is linked to a custom component and a ...
0
votes
1answer
21 views

Referencing a Partner through AccountToId but can't reach Name

I am writing a VF email template which should build a table of the related partners to the opportunity. when I pull the partner details from the {!relatedTo.Partners} object I can't reach [Name] for ...
2
votes
0answers
133 views

Dynamic Email Template Body

I have a requirement where I need to send the email template and also allow the use to change it and then send the content. I am able to send email and attach a VF template dynamically. But I am not ...
2
votes
1answer
24 views

Is it possible to modify Salesforce email template type

My question is regarding the possibility of modification of email template type(Text, HTML, Custom, Visualforce) after an email template has been created. Basically, I have an existing text template ...
3
votes
0answers
116 views

Can we conditionally render text in a non-Visualforce email template on a picklist?

I'm working on designing an HTML template as a possible workaround to a problem with Visualforce templates refusing to send when triggered from a workflow rule where the ownership changes, and the old ...
5
votes
1answer
63 views

Can we specify “without sharing” in Visualforce email templates?

We have a workflow rule that triggers when ownership of a record changes and certain conditions are met-- part of the criteria is ISCHANGED(OwnerId), which causes the workflow to perform its actions. ...
2
votes
0answers
209 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
57 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 ...