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
3
votes
0answers
576 views

Send Approval Comments in Visualforce Email

I have a custom Visualforce email template with a VF component inside it that displays the most recent Comment from an approval process. It is built with the same approach shown in this blog post by ...
2
votes
1answer
970 views

Unable to edit/save emails with custom formulas for Classic Email Templates - Spring '20 Release

There have been ways in the past you could use (hack) custom formula's within Classic Email Templates to render content depending on the scenario. For example, you can use this formula directly in the ...
0
votes
1answer
645 views

Marketing Cloud Responsive Layouts Not Responsive

Does anyone here ever encountered that the Empty Layouts of Marketing Cloud are not rendering good in some mobile devices (more on iOS Outlook). What solution or workaround did you do to fix this ...
0
votes
1answer
19 views

Show work order if it is not null in TimeSheetEntry

I am creating an visualforce e-mail template on TimeSheetEntry: <messaging:emailTemplate subject="Time Sheet Entry has been updated" recipientType="User" relatedToType="TimeSheetEntry"> <...
0
votes
1answer
232 views

Why is the Default Commercial and Default Transactional HTML Footer are not showing the same code when doing Preview and Test?

We created a custom HTML Footer, we inserted it in the Account Settings, and selected the "Custom" as the HTML Footer. Now when I do preview and test, Default Commercial is showing the Custom HTML, ...
0
votes
2answers
407 views

Can I set Email Subject Line in Template?

I'm struggling to find a way to set a subject line in the email template, is this not possible? Ultimately, I will be pulling the subject line from a data extension with some ampscript (and to do ...
0
votes
2answers
333 views

Migrate Email templates from Personal email templates folder

What is the best way to move email templates from Personal Email Template folders of all users from one production org to another? ANT will only extract personal email templates of the running user. ...
-1
votes
1answer
32 views

Mail is getting triggered to my user email id without any trigger point from apex or trigger or workflow or process builder [closed]

I have written the apex code to sendmail for my project. When it is getting triggered from apex class. It is getting trigger to two email ids. One is my user email id and other is the one which I am ...
1
vote
1answer
381 views

Can you format merge fields in Salesforce email templates?

Basically I am trying to create some email templates that send out to our users that contain a phone number. A lot of these phone numbers are formatted with no parathensis or dashes, and are in the ...
0
votes
1answer
218 views

How to place "view online link" for salesforce HTML email templates?

I have created an HTML email template in salesforce, now I want to place a link to view the mailer in the browser. As we place in the marketing cloud, I want to do the same in salesforce. Is there any ...
0
votes
1answer
821 views

Where can I find the Survey email templates?

According to this from the docs, we can customize the survey invitation emails. But I can't find the template anywhere in Setup to customize them. Where can I find them?
1
vote
1answer
677 views

Migrating 10,000 + email Templates in Salesforce

Our Business has created 10,000+ new Email templates(Word Doc) that needs to be migrated in a certain folder.Is there a better way to migrating them all at once rather than doing them manually.
0
votes
1answer
30 views

How to access current page elements in lightning?

Is there a way to access the iframe where Email Body is filled in? I want our users to have their signature populated when they compose a new email or reply to a received email. I was able to do it ...
3
votes
1answer
38 views

Which user applies to the execution context when executing messaging.sendEmail?

I have a field that is used in an email template for which no FLS is granted in any profiles. The Apex code that sends the email using messaging.sendEmail() is invoked from a trigger so I assume it ...
2
votes
1answer
610 views

Lightning Merge Fields Preview

I have recently moved to Lightning Email Template from custom classic email template. The difference I have observed is: Classic Email template resolve the merge fields upon insertion into Email ...
0
votes
1answer
184 views

Email content displayed twice after sending

From time to time, some emails are displaying content like the header or the footer twice after sending it. In the preview, everything looks good. Is there any reason behind? We are using an HTML ...
1
vote
1answer
379 views

Email Alert to include the actual fields that changed that triggered the email alert

I have triggered an Email alert when Status is changed, LastModifiedBy date is changed and it works - every time there is a change in any of the fields on a ticket, emails are sent to Owner and ...
0
votes
0answers
28 views

insert merged fields and script to have Accept and Reject in custom HTML email template

I would like to ask for your assistance on how can I insert merged fields in html custom email template. I need to create html template for this message: Dear ${contact}, The engineer working your ...
2
votes
1answer
2k views

Remove Salesforce Footer from Marketing Cloud Emails

Currently I am preparing an email template in Marketing Cloud. This Template is HTML based and includes a custom Header and Footer. Though, when I test the email there always is a Salesforce Footer ...
1
vote
2answers
850 views

Extract full email code from Marketing Cloud

I would need to replicate some emails built-in Marketing Cloud in other tools and I would like to know Which is the best way to extract the full HTML code of an email, considering there are some ...
1
vote
1answer
1k views

Send email on case creation by record type

We're using web-to-case to create cases. Different types of customers can create different types of cases, which we manage via Record Type on the Case object. On case creation we would like the ...
0
votes
1answer
59 views

Downloading Email Template as a PDF

I have an email template, querying the Email template and displaying it in VF page, with Fixed headers and footers in each page. I need to display fixed headers and footers in all the pages in PDF ...
1
vote
0answers
19 views

EmailAuthor in Community

Has anyone used EmailAuthor(Send email using email template) functionality in Lightning Community? Is it supported? I tried using emailauthor link in community, does not seem to work.
1
vote
0answers
76 views

Rendering components inside Lightning Email Templates

Is it possible to reference a lightning component or any other component inside a lightning email template? For example with classic email templates we can use components if visualforce email ...
0
votes
1answer
574 views

Salesforce email template access from Community

Previously when I had this EmailTemplate template=[select Id,subject,HtmlValue from EmailTemplate where DeveloperName='CS_New_Case_Notification_Assignment_Group']; query in a ...
1
vote
2answers
199 views

HTML in APEX not giving correct base URL with ahref

Account acc = [Select Id,Name,Owner.Name FROM Account WHERE Id =: accId]; String HtmlBody='Attention Data Analyst,<br><br>'; HtmlBody+='Please verify the Account: ' + '</b&...
1
vote
0answers
569 views

Trigger Lightning Email template

I have create a Lightning email template related to Account. In the apex code I am referencing this email template, so that the email that goes out is based on this template. The email I receive is ...
2
votes
1answer
213 views

First exception on row 3; first error: SINGLE_EMAIL_LIMIT_EXCEEDED, Email limit exceeded

Am getting following error message 06:15:51:437 FATAL_ERROR System.EmailException: SendEmail failed. First exception on row 3; first error: SINGLE_EMAIL_LIMIT_EXCEEDED, Email limit exceeded: []. ...
1
vote
0answers
36 views

is there a lightning experience version of the send email page?

We have some url link buttons on a few pages that go to the Send Email page in classic that loads an email template, allows for editing, and then sends. This is all OOTB functionality (other than the ...
0
votes
0answers
48 views

email template to be used in apex . Email template used approval.id

I am trying to send emails through email template in my apex class . This is the code I am trying Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setToAddresses(...
0
votes
2answers
279 views

Send Email via Flow that will show Last Opened

I have a classic email template that contains a holiday card image. I can send the email template via an email alert in a flow. It works well. However, it logs the email in the contact's activity ...
0
votes
0answers
245 views

Multi language Support for Email Template

Requirement: On custom Lightning component, List fo records with checkboxes and while selecting the checkbox there is a custom button to Send Reminder which should open a popup screen with default ...
1
vote
1answer
858 views

Query Email Template folder parent Id - is it possible?

I'm trying to implement a lightning-component-based custom display of email templates and their folders in a form similar to lightning:tree (a tree view with collapsible levels). There's a nested ...
2
votes
0answers
68 views

Are URLs for Salesforce files brittle?

I'm using Salesforce Files with enhanced letterheads with a URL like the following: <img alt="Company_letterhead_header" src="https://my-domain--c.na191.content.force.com/file-asset-public/...
0
votes
2answers
116 views

Email content not rendering when Pass custom relatedTo object's param from visual force email template to controller

I'm really confused by order of execution. I have tried with a few posts, but mine does not work. Please help with taking a look. I am able to receive the templated email, but there's no incident ...
0
votes
1answer
450 views

Apex SingleEmail using template and userId

I'm trying to send a Messaging.SingleEmailMessage in Apex using a Custom Email Template to a specific User and using a defined OrgWideEmailAddress. The simple code is here: List<Messaging....
0
votes
1answer
353 views

Remove email signature after sending single email with email template

here is the scenario. UserA has email signature in his setting. When clicking on a custom button, a template email is sent out to Person_B with sender UserA's name. Now the sent out name has 2 email ...
1
vote
1answer
577 views

Why are my AMPScript variables rendering in send preview, but not in test send?

I have a series of AMPScript variables and statements, that are resolving perfectly fine in the send preview. Once the test is sent out, some of these variables do not resolve and some of them do. ...
0
votes
0answers
63 views

Email notification on ContentVersion object

I am sending an email notification if a field is changed on Content Version object through Apex as we cannot create Workflows/processbuilder on Contentversion object. In my Apex code, I am referring ...
0
votes
1answer
49 views

Code efficiency when using same content in multiple method in same class

what I should learn and do if I have 3 different methods that are essentially doing the same thing but only the query statement that makes the differences. For instance my code below have 2 methods ...
0
votes
1answer
101 views

Sharing a common fragment among multiple Classic email templates [duplicate]

I have tons of classic HTML (with classic letter header) email templates in a classic org. All of the emails share a common HTML disclosure that is text with some hyperlinks. To ensure consistency ...
0
votes
0answers
39 views

Approval process custom HTML email template with no header and multiple languages based on user

Approval process custom email template ( not Vfpage but salesforce HTML email template with no header) with multiple languages based on user. I know this is possible with VF pages but we would like to ...
0
votes
1answer
321 views

Salesforce Marketing Cloud Mobile-hidden

I saw the useful function of the "mobile-hidden" in the creation of emails in cloud marketing. If I wanted to create 2 content, one for mobile and one for the desktop, how should I do to see it in the ...
1
vote
1answer
187 views

Field Level Security on Email Template Not Working as Expected

I'm trying to hide specific fields in an email template for a specific profile. For this, I removed the field level access for fields I want to hide for the respective profile. After logging in as ...
0
votes
1answer
71 views

Email Template - The template does not have a controller that can be selected for preview

When I include the following code inside the "subject" of my visualforce email template I can't use "send test and verify merge fields" - the message 'The template does not have a controller that can ...
0
votes
1answer
1k views

How to Dynamically Embed Images from Files into Email Templates

I have a custom object with Files. The Files hold images. I am creating an email template and want the Files to embed in the email template. How do I even begin to go about that? I can't find anything ...
0
votes
1answer
35 views

How to Pass parameter value from controller to Apex:repeat getValue()

I wonder, how can I pass input variable to getValuesForRepeat in apex:repeat please. I.e, my apex:repeat renders different contents depends on inputVar1. Basically, <apex:repeat value="{!...
0
votes
1answer
261 views

SingleEmailMessage getting into SPAM folder

I'm sending an email with a Messaging.SingleEmailMessage using a verified Org Wide Email Address. Also, I have Enable compliance with standard email security mechanisms and Enable Sender ID ...
0
votes
0answers
158 views

Classic Email Letterhead

Is there a way to create professional letterheads similar to Classic Email Letterhead with Lightning? If not is there a way to use a file in the Classic Email Template instead of a document?
4
votes
3answers
2k views

How can I retrieve email templates from a sandbox using the Salesforce CLI?

I tried to use the force:source:retrieve command with the -m parameter as EmailTemplate but it doesn't retrieve the email templates in my connected sandbox. How can I retrieve the email templates?

1
3 4
5
6 7
24