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.
993
questions
0
votes
0answers
16 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
1answer
36 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
17 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
24 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
22 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
26 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
1answer
11 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
18 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 ...
0
votes
0answers
26 views
Add several recipients in email template
Good morning,
I have an Email Alert that calls an Email Template to send a email.
My Email Alert has 2 recipients. I would like to mention each recipient in the email template like this:
For each ...
1
vote
1answer
35 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 ...
0
votes
0answers
15 views
Manipulating the reset password URL generated with {!$Network.NetworkUrlForUserEmails} in communities
I am working on setting up new user and resetting its password in communities.
In first Scenario,When user first time sign ups in community, he
will be receiving welcome Email. We have used ...
2
votes
0answers
29 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
60 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
23 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
14 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
70 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
21 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
0answers
24 views
html email body
i have schedule class which schedule the job and send the html email template to the user but my issue is customer are changing the mail body now and then so we are changing the code every time.
i ...
0
votes
1answer
45 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
27 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
13 views
Send Massive different emails to different contacts limitation
In my case, I have an email template. To construct the email body, I extract data based on who the contact I'm emailing to. For example, I send red-marked cases to user1, green-marked cases to user2, ...
0
votes
0answers
19 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
0answers
16 views
Email template relatedToType not binding values
I have done a full day of research, looked into many code examples, but could not figure out what went wrong with my code. Help please.
My email template
<messaging:emailTemplate subject="TEST-{!...
0
votes
0answers
9 views
Passing Email Merge Fields into Salesforce Flow
I have a Lightning Flow that uses a picklist to display certain Email Templates to chose from. Upon selection, the next screen will display the contents of the email alert (Subject, Body). The only ...
0
votes
1answer
34 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 ...
0
votes
0answers
21 views
Email alerts are not sent out from specific profile
I have a very simple workflow rule that sends out an email alert when the record is created and any time it's edited to subsequently meet criteria.
If I log in as an admin, the alerts are sent out ...
1
vote
1answer
18 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
0answers
12 views
Auto Populate TO email address when click on “Send Email” button in activities related list on Custom Object
I have a custom object xyz__c in which i have standard related list 'Activity History' which have 'Send Email' button.
When we click on 'Send Email' button we have "TO" input field in which i want to ...
0
votes
1answer
20 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
16 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
24 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
30 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
14 views
Make A Lightning E-mail Header/Footer Dynamic Based Off Of Location
I’m working with an org that has acquired multiple businesses underneath it; they all have different logos.
I want to make a lightning dynamic letterhead that displayed their email Footer/Header ...
0
votes
0answers
30 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
2answers
187 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?
0
votes
1answer
50 views
How to share a lightning email template folder?
I'm trying to find the screen where you can share lightning email template folders with other users but can't see it anywhere. It's mentioned in here so I know it exists:
https://releasenotes.docs....
0
votes
0answers
19 views
Is possible to use a Visualforce email template whose content can be freely edit?
I need to use a Visualforce template because I have to automatically attach a Visualforce page rendered as PDF. However, I'm not able to make a Visualforce template whose content can be freely edit ...
1
vote
0answers
60 views
How to Send Email with predefined Template in Lightning?
In Lightning, how does one create a quick way for users to send an email with specific email template pre-selected? In classic, we can use URL parameters and do the same but with lightning that's not ...
0
votes
1answer
33 views
Is there a way to fire an e-mail workflow without saving a record first?
I have a business case where 1.) someone takes a phone call 2) creates a case
3) ends call and continues researching before saving the case finally
a user could have multiple case tabs open before ...
0
votes
0answers
14 views
X-SFDC-X- is prepended to the name - how to remove it
I want to send a custom-id as header to Mailjet or Sendgrid. In our case Salesforce is prepending X-SFDC-X- and Mailjet or Sendgrid do not see their header to add the custom-id to the email. Is there ...
0
votes
0answers
22 views
Visualforce Email template - merge fields not working
I need to populate the merge field for the related accounts creator/owner.
I have these details:-
<messaging:emailTemplate subject="Employers initiating Enrollment for Employees" recipientType="...
1
vote
1answer
45 views
HTML Email Templates delivered Incompletely in Lightning List Email
I have few html email templates which are used to send mass emails to Contact and Campaigns.
They are working fine in Salesforce classic whereas in Lightning, they are delivered incompletely. We need ...
0
votes
1answer
64 views
Enable Default Email Templates in Case Feed is not working
I am trying to enable the default email template selection logic as per the salesforce provided document - https://help.salesforce.com/articleView?id=case_interaction_default_templates.htm&type=5
...
0
votes
1answer
81 views
Visualforce email template in Lightning
Can anyone let me know how to create VF email template in Lightning. For email templates in Lightning, we have a tab called Email Templates. When I tried to create a new template, I have an option of ...
0
votes
0answers
24 views
Email sending from Sandbox is Inconsistent
In one of our sandbox, we are testing some funcationality which sends the email from workflow when ever a case with specific subject is created. But the problem is email sending is very inconsistent i....
0
votes
0answers
26 views
Event.StartDateTime: Only date field is displayed
When I use "Event.StartDateTime" in a HTML email template, only the Date would show up. Is this a Salesforce bug? Or am I doing something wrong?
0
votes
0answers
9 views
Resizing mobile email template without code
I am new at Marketing Cloud and I am trying to find a way of having the same email template in desktop and mobile.
For example, now I have 3 images in desktop version (horizontally) and when I open ...
0
votes
0answers
13 views
Merged fields on Email Template showing #Error!
I am trying to pull information from an Account into an email template. The two fields I am trying to pull are of type Date and Picklist, however when I send a test email, I recieve a #Error! on those ...
0
votes
0answers
22 views
user with Manage Public Lightning Email Templates can not create email template
I am System Admin and create Permission sets with Manage Public Lightning Email Templates and Create Folders for Lightning Email Templates this permission.
Create or New button is not available in ...
0
votes
0answers
140 views
Sending LWC Email Template
We have a report that we currently generate using Conga (3rd party license), in the past we've made similar visual representations of the data using VisualForce, but now as we consider the ...