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
0
votes
2answers
80 views

How do you get the Related To objects which appear when sending an Email?

When you send an email in Salesforce you can related it to an Object from a preset list, I'm wondering if anyones knows of a way anyways to find what this list is?
1
vote
1answer
50 views

Sort Content from One DE based on Content in Another

I am using the LookupOrderedRows function to pull information from a membership table and need to sort it based on data from a separate DE that contains all the group activity, I have tried a nested ...
0
votes
2answers
830 views

De-reference a null object error when attempting to set user variable value to Owner

I'm putting together a trigger to handle some of my workflow rules (our org is hitting limits) and I keep getting the following error: "Error:Apex trigger AR_Email_Alerts caused an unexpected ...
1
vote
1answer
119 views

Salesforce, Email Template, Field “Additional To” cuts the rest of address after “&” sign

Hi stackexchange community. I have noticed that the e-mail template i've been using somehow cuts the rest of the address in "Additional To" field, if it contains "&" sign (e.g. test&test@...
1
vote
2answers
3k views

How to use Formula Operator in HTML Email Template?

I want to use certain Formula Opearator like HYPERLINK, LEFT, FIND in my HTML Email Template. But I am not sure how to use that. I tried using like below. HYPERLINK({!Sobject.Link}, 'SOBJECT') ...
0
votes
1answer
101 views

Birthday eMailer app

I downloaded the Birthday eMailer app in mid-2014 so that we can send birthday emails to our customers. This year we wanted to refresh the look of the email that we send out so we created another ...
0
votes
1answer
74 views

Walking relationships in email templates in a workflow

I have a custom email address field on Account called Primary Email Address. We have also created a custom object off of account called Purchases. I want to be able to send an email to the Primary ...
0
votes
1answer
97 views

Including a RelatedList of tasks in a broadcast email via Visualforce

So I'm just trying to see if this is possible. I've been tasked with trying to find a way to include a related list in a broadcast email template. Some background, we use Tasks for student forms and ...
4
votes
1answer
3k views

Preview email content of email templates before sending

I am developing a feature to send a email from a Custom Visualforce page. For this I am using the Messaging.SingleEmailMessage class. I need to give users, the option to select email templates from ...
0
votes
1answer
87 views

Email Template Not Mapping Information from Web-to-Lead Form

I am a bit new to salesforce. I am trying to populate "Signed Date" from my Web form on to the email template. But it is not populating only that field.My email tepelate is: Signed (Student) Date {!...
1
vote
1answer
124 views

commandlink in Visualforce email template not working

I have an email template that includes a commandLink. This utility method is used to send the email. public static Boolean sendEmailTemplate(String tNm, Id toId, Id wId) { Messaging....
2
votes
2answers
820 views

How to handle Email Opt Out for Various Categories

We have a requirement as Contact having 2 checkbox fields as 1. Unsubscribe Newsletter 2. Unsubscribe Webinar Emails If Contact select "Unsubscribe Newsletter" then no mails will send to the Contact. ...
11
votes
2answers
6k views

Communities Welcome Email - Set Password link not working ({!Community_URL})

Background: We've enabled communities and set up user profiles, access etc. There are no login flows nor SSO going on, everything is pretty standard apart from a custom login page (active site ...
1
vote
0answers
959 views

No line breaks in auto-generated Text Body from HTML Email

According to this article: https://help.salesforce.com/HTViewSolution?id=000194309&language=en_US Leaving the text body of an email template blank will cause any edits to that template to be ...
2
votes
1answer
543 views

Problem with sending an email that uses a custom component/controller

I've put together a Visualforce email template for cases and I'm running into an issue with it that only occurs when the case is initially created. The component pulls a list of related records from a ...
2
votes
0answers
1k views

Why am I seeing email notifications in a different language?

For some reason, when an external user/customer updates a support case, the email notification I receive is in a different language. As far as I know, I haven't explicitly configured Salesforce to ...
1
vote
5answers
3k views

Send Email with Template on Custom Record's email ID

I am having one Email Template which I want to send in an email - How can i achieve that one - String strToEmail=objEmp.Office_Email_c; Messaging.SingleEmailMessage email = new Messaging....
0
votes
1answer
335 views

How can I use site field in an email template?

I'm trying to add Site Fields into my Email Template, but in the mail these fields are blank. I tried adding this into my Email Template: <br/>tld: {!Site.TopLevelDomain} <br/>upp: {!Site....
2
votes
1answer
987 views

Recipient details in HTML Email Template

I would like to enter recipient details (First Name and Last Name) in the HTML Email Template body. My recipients are always my Salesforce users and they are having always first name and last name. I ...
0
votes
2answers
831 views

Conditions inside html email template for picklist values

I am new to salesforce and my scenario is like this: Based on the status value of Case object I need to make the link present in HTML email template dynamic. ie.: If I select Closed as status value ...
0
votes
1answer
3k views

Email Template not populating {!Contact.Name} with workflow Email Alert

I have created an email template using {!Contact.Name} merge field to display conatct name. Object XYZ__c has a lookup field MyContactLookup__c. I have created workflow on object XYZ__c on record ...
1
vote
0answers
880 views

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

How can I set multiple objects Id in targetObjectsIds and WhatIds?? Whenver I tried to do that it gives an error String[] bccAddress = new String[] {'contact@testcompany.com'}; Messaging....
1
vote
1answer
1k 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
149 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
384 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
267 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
113 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
28 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 ...
4
votes
3answers
2k 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.
1
vote
0answers
83 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
35 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 ...
1
vote
3answers
12k 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 ...
1
vote
1answer
976 views

Preview Email template within Visualforce page, some throw an error

I have a custom page to preview and render Email templates, now i came across that some (not many) templates will exceed the view state of the page ( max 137kb) As I need the function to replace text ...
2
votes
2answers
1k 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
159 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
1answer
2k 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 ...
1
vote
1answer
661 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
239 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 ...
5
votes
1answer
4k 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
2answers
6k 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 ...
3
votes
1answer
660 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
44 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
482 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 ...
1
vote
2answers
2k 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 ...
3
votes
1answer
225 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: &...
1
vote
4answers
2k 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
355 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
60 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
908 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
4answers
1k 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 ...