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
1
vote
0answers
14 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 ...
0
votes
1answer
481 views

Case Assigned Template not getting used when a case is assigned

I'm having a problem with Case Assignment Template. I'm only getting the standard system generated email notification when a case is assigned to me, despite me having an email template specified in ...
2
votes
1answer
120 views

Call getContent() from Workflow Email Alert

I try to call the PageReference's getContent() method from a component that is nested in a visualforce email template. If the template is send via the test button, all looks great. However if I fire ...
0
votes
1answer
354 views

Is there a way to make custom HTML letterheads?

We have a load of branded email template HTML that we would like to use for email correspondence in Salesforce. They need to allow for custom text to be added to the body based on customer query. We ...
0
votes
0answers
25 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(...
2
votes
1answer
23 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
19 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 ...
1
vote
1answer
736 views

Custom Button- Create PDF

How can I create a custom button create pdf to add a Email template? I try to use this example: /_ui/core/email/author/EmailAuthor?p2={!Stock__c.Id}&rtype=00Q&retURL=%2F{!Stock__c.Id} But ...
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
2answers
59 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
0answers
25 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
1answer
412 views

Getting a Document image in a custom HTML template?

I have a custom html template with an image tag like: <img src="{!companyLogo}" /> Then, in my controller that sends emails, I get the body of the custom html email template and replace that ...
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 ...
0
votes
3answers
535 views

VF Email Template Error - Attempt to de-reference a null object

Hello everyone I am trying to get my visualforce email template to work this component is used on the Opportunity and Contact Objects. Both email templates are showing the Error occurred trying to ...
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
1answer
423 views

Visualforce button to open EmailTemplate preview in new page causes error

I have a Visualforce page where I allow a user to edit text to add to a VF template and then send it. (I can't use an HTML template as there is an attachment which is built up using data from the ...
2
votes
1answer
434 views

SF Communities: Welcome Email not getting populated

I have a scenario where in a 'Welcome Email' needs to be sent a new Community User after the Community User has been created (by converting the Contact to External User). We are using a visual force ...
1
vote
1answer
491 views

Mass Email Multiple Contacts from Multiple Cases

Any thoughts on a solution for mass emailing, using an email template, multiple case contacts (via contact roles or contact fields) from multiple cases? Each set of case contact role emails would be ...
0
votes
1answer
798 views

Recipient user name through email template

I have created a Email Template and this template has to send to users. I am doing it through apex class. Users is receiving the mail I am using "Dear {!User.Name}". But it is coming with my name ...
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 ...
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....
2
votes
1answer
479 views

AMPScript, Checking values in a row

Please forgive my beginner level understanding here, I've been thrust into modifying an email that hasn't been touched in a few years, and I've never used AMPScript before. I'll try to keep this ...
2
votes
1answer
360 views

Email Template {!Receiving_User.Name}

I want to send email to all the users in a public group from initial approval action. How can I refer individual user's name in the email template? I tried {!Receiving_User.field_name} merge field in ...
0
votes
1answer
749 views

Edit properties of a Visualforce Email Template in apex so the email sent through Messaging.sendEmail() will have the most recent data in it

I have a visualforce email template that displays the list of Opportunity records that are populated using a visualforce component. I'm using this email template in a schedulable class. The HTML ...
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
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 ...
1
vote
2answers
1k views

Send email : SingleEmailMessage using email template and merge fields from campaign

I'm sending email from my APEX class using SingleEmailMessage and at the same time to fill the mail content i'm using the mail template mail.setTemplateId(id); in the template i have the fields ...
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 ...
0
votes
2answers
385 views

How can I update data extension after clicking Submit Button in the cloudpage?

I would like to update a field name "Email_Optin" in my data extension after clicking submit button and set the Value of it to True. Is this possible using ampscript?. Thank You!
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 ...
1
vote
1answer
426 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 User....
0
votes
1answer
26 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
18 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
1answer
616 views

Visualforce Email template I used {!relatedTo.owner} showing opportunity owner ID not name

Hi I have created VF email template and send it through workflow action but unable to get Opportunity owner name on recipient name. it is showing that person name who edit the record. Then I used {!...
1
vote
2answers
455 views

Regarding SFMC default Update profile option in email templates

we have custom update profile option and wanted to take out the default provided by marketing cloud in email templates. what are the consequences if we remove default update profile which SFMC ...
5
votes
1answer
368 views

Individual Email Results Issue (same JobID different BatchID)

we are having a problem with Individual email results. Our aim is to show individual email results in Salesforce after sending emails from a journey configured in Marketing Cloud. We sent several ...
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
372 views

Not able to implement background image in HTML email template in GMAIL/OUTLOOK

I am trying to send a background image in email. I am using HTML email template without Letterhead. On Preview, I can see the background image but it is not displayed when send to email server. I have ...
0
votes
1answer
33 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
1answer
436 views

CSS style issue for PDF in Visual force email template

I have one visual force email template which sends an attachment in PDF format. I have given style class for fields in the PDF, but the given CSS does not works for the PDF. Please help me out.
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 ...
3
votes
1answer
480 views

How to Upload Lightning, not Classic, EmailTemplates

I need to convert 200 classic emailtemplates to lightning templates and I've encountered an obstacle. When I insert templates with lightning markup using SOQL and identical field values to an existing ...