Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
18 views

E-mail template losing formatting APEX

I created an Email template in classic. However, When I send this email via send test and verify merge fields I get the display as show in the HTML preview. However, when I send the e-mail via apex ...
0
votes
1answer
36 views

HTML template in marketing cloud

I created a template in marketing cloud using own html. While editing this template, in the layout view 'block', 'content' and 'layout' everything is non usable/editable and I can edit the template ...
0
votes
1answer
24 views

Star Rating not rendering on custom HTML email in Marketing Cloud [closed]

We have created an email in Marketing cloud using an existing Blank template where we can drop our custom made content blocks. And for one email we have a requirement where we need to capture the ...
0
votes
0answers
16 views

Searching email templates

I am needing to find a way to find all email templates in my org that havent been used in the last X amount of time (not sure on exact date or # of months yet). Is there a way i can either just use a ...
0
votes
0answers
18 views

Process Builder run After update

I want to run process builder after records updated. For this, I have written formula into PB. AND(NOT(ISNEW()) ,NOT( ISNULL( [Payment__c].Payers_Email__c) ),[Payment__c].Payment_Email_Sent__c=true) ...
0
votes
1answer
15 views

Using SingleEmailMessage to send email with template to an email that might or might not be a contact

Normally to send an email with a template this is how you would do it. Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage(); mail.setTargetObjectId(contact); mail....
0
votes
0answers
10 views

How to use static resource image in visualforce email template editor

I am using a public site and a public static resource to add images to a visualforce email template. But when I use this code: <img src="http://example.force.com/email/{!$Resource.logo_300}" ...
0
votes
1answer
13 views

Issue with Email Alert in the field 'from email address'

I'm trying to create an email alert for notifying the case submitter through email. I've set up email-to-case automation and now I'm working on the response email. I'm stuck at the 'from email address'...
0
votes
0answers
27 views

{!ApprovalRequest.Internal_URL} in a Visualforce Email that is using a different related to object?

I'm creating an email template for an approval request and it is related to our quote object. When I try to use {!ApprovalRequest.Internal_URL} to get the URL to link out to the quote, it doesn't ...
0
votes
1answer
37 views

Capture Survey Response from an Email and store answers into a Data Extension

Is there a way that we can create a survey in the Email and capture the customer responses in the Data Extension? I'm looking for a solution for it, and found out that Surveys are no longer ...
1
vote
1answer
33 views

Lightning Email Templates Deployment

I have been reviewing the documentation for Lightning Email Templates and it does not look like they can be deployed from one org to another. I have been unsuccessful retrieving them from the Metadata ...
0
votes
1answer
28 views

AMPscript not woring in email body

This maybe a silly question as i am totally unknown to the AMPscript. I am trying to get date in the email body so wrote the following code, but when sent out test emails, the code was not replaced ...
0
votes
0answers
18 views

Wrong Email Template is being sent from the community after password reset 5 times

We have a Community with Customer Service template. There are Custom Templates for Emails like Welcome, Forgot/Change Password, etc. Please check the image below. All emails are being sent with the ...
0
votes
1answer
10 views

Email Templates from a Packaged folder could not be found

I wanted to lookup an email template in my apex code. I tried to execute first an SOSL to check if I can find it, like FIND {Generic} IN NAME FIELDS RETURNING EmailTemplate(Name) But it only gets ...
0
votes
0answers
13 views

Need to show comma in subject line of custom visual-force email template for amount field

I have a requirement where I need to show an amount field in subject line of the email template and that template is custom visual-force page since I also need to show line items data . When the alert ...
1
vote
1answer
80 views

Lightning Email Templates: Custom Merge Fields

Is there anyway to reference a custom object field when creating a Lightning Email Template or are we limited to the options in merge field picker? I believe it is the latter, but want to verify. ...
1
vote
1answer
45 views

Email to Case (Using thread Id)

I am working on email to case. My requirement is whenever a user is sending mail from outside to salesforce generated email address, case should be created and reply back to user with case id in ...
0
votes
1answer
86 views

SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, java.lang.NullPointerException: []

I am getting this error message: Message: SendEmail failed. First exception on row 0; first error: UNKNOWN_EXCEPTION, java.lang.NullPointerException: [] Stack Trace: Class.MessagingHelper.send: ...
0
votes
1answer
22 views

Send Email Template For Custom Object Merge Fields

I want to show merge field of my custom object enquiry__c in the email template which I will send to all enquiries but unable to do so, Also tried all ways like given below. Code for sending email:- ...
0
votes
0answers
11 views

Can we customize the email notifications to be sent to Event invitees when we click “save & send update” button?

Can we stop standard email notifications & Can we customize the email notifications to be sent to Event invitees when we click "save & send update" button?
0
votes
0answers
32 views

Custom Controller in Email Template not passing values to Class

I have created a simple visualforce email template: <messaging:emailTemplate subject="PRICING APPROVAL NEEDED for - {!relatedTo.CameleonCPQ__AccountId__r.Name}" recipientType="User" relatedToType="...
1
vote
1answer
36 views

%%view_email_url%% - renders template dynamically instead of showing email version

My email tempalte is populated by the means of using a dynamic data coming from JSON api. I have this %%view_email_url%% to view the email in the browser -> so what I want is to display email as it ...
0
votes
1answer
39 views

Email Template in Hebrew Language (Right to left)

I want to send an HTML email template in Hebrew Language but i am not able to send it in right to left format. Can anyone please help me here by explaining how can i do it. Whenever i am pasting the ...
2
votes
0answers
27 views

INVALID_ID_FIELD, SaveAsActivity is not allowed with whatId that is not supported as a task whatId [duplicate]

I have an email template which is configured like this: recipientType="Contact" relatedToType="Lead" The email is sent using this: mail.setWhatId(leadId); mail.setTargetObjectId(contactId); mail....
0
votes
1answer
36 views

How to get List from Visualforce Component Controller

I have a visualforce component which is used in an email template to display a list of related items. Visualforce Component <apex:component controller="LeadProductsController" access="global"> ...
0
votes
1answer
24 views

Can a Custom Component Populate Gmail Subject and Body Fields Using the Lightning for Gmail Application

All that the documentation says is the following: The subject indicates the subject on the current email. <aura:attribute name="subject" type="String" /> The messageBody indicates the email ...
0
votes
1answer
23 views

Managed Email Template is not showing on Lookup

I created a lightning component that contains a field that looks up an email template. This is the attributes from the component: <aura:attribute name="emailTmp" type="EmailTemplate" default="{'...
0
votes
0answers
16 views

Lightning Gmail Email Application EmailTemplates and Merge Fields

I'm working on a custom template picker component that will be part of the Lightning for Gmail Email Application. I'm able to load templates based on my criteria and fill in body and subject email ...
1
vote
0answers
26 views

Detail Link in Email Template

Maybe I missed it somewhere but I haven't been able to find it anywhere. So here is the question: I am using Detail Link in email template and the email is send via Workflow to notify Record Creator....
0
votes
1answer
15 views

How to Pass the Record Object in a Click Action From a Lighting Aura Iteration?

I am working on a custom template picker component which filters/restricts templates available to users. The email form is in a child object which the template picker writes to using an aura method. ...
0
votes
2answers
119 views

Pass Id from Visualforce Email template to Controller

I am trying to pass an id through a Visualforce email template component to its class. The class creates a wrapper, to combine two objects records into one list. The two objects lists have a common ...
1
vote
1answer
28 views

Change content on the “Open in browser” page after sending the mail

Is it possible to change content on the "Open in browser" page after sending the newsletter mail by salesforce marketing cloud? I would like to do it in a way the link will continue to work but ...
0
votes
0answers
14 views

Embed vfp page with “wave:dashboard tag” as email template

Is it possible to send visual force email template via email with embedded wave:dashboard tag? Right now when I send the email template to my email it only show the ff. test start test end But ...
3
votes
1answer
49 views

Validate Merge Fields on a Lightning Email Template in Apex

Is there a way to retrieve the merge fields of a specific Lightning Email Template in Apex? Example EmailTemplate template = new EmailTemplate(); template.getMergeFields(); I would like to validate ...
1
vote
1answer
22 views

How to provide sfdc org Link for Guest User

In email template, Using Please click on the link below link to view the record. Link to SFDC Record: {!Account.Link} Problem is ,If site Guest user submits the record it shows partner portal ...
1
vote
2answers
44 views

HTML Email Template : Looks Okay In The Editor, But Loses All Styling When Sent

I'm trying to create an email template in HTML. I originally did all the styling as an internal style - But later found out that styling must be done as inline css. My creation looks fine in the ...
0
votes
1answer
34 views

Lightning email can't enter message

when I click on email tab I only see related and no way to enter message. Also the icons for templates are missing, See the following:
1
vote
1answer
101 views

In HTML Email Template lookup field showing Name field of the related lookup object, how can I get Id instead?

I have two objects Parent and Child, I have created email alert on child with HTML email template, I have to send the link of site page in that mail template with URL parameter as Id of Parent, but ...
0
votes
0answers
48 views

Can we hide “Unfiled Public Classic Email Templates & My Personal Email Templates” for Partner community users?

We have a requirement that we need to hide the default "Unfiled Public Classic Email Templates & My Personal Email Templates" from all the Partner users except the administrator. ...
3
votes
1answer
33 views

Time dependent workflow email alert - dropping fields

I have a visualforce email template. When I send it via the 'send test and verify merge fields' button it populates correctly with all fields. When I send it via an immediate workflow action - it ...
3
votes
1answer
63 views

Not able to call a variable from constructor

I am using a visualforce email template which calls a visualforce component and that component calls the controller class. I am sending an Id from the Email Template to the component and trying to ...
0
votes
1answer
20 views

Access receiving email first name from email template

How to access to the Email Receiver First Name from the Email Template? For example, I have to send an email to a specific user that have to approve a record and I want the email say: 'Hello {!...
0
votes
0answers
22 views

Auto Select Email Template Apex Class not selecting template automatically.

I had a use case where we want to select an email template automatically, It needs to be either an HTML ( with a letterhead) or in worst case a custom email template (without a letterhead). I've ...
1
vote
2answers
78 views

Date formatting Marketing Cloud

I want to fetch date variable on a email in marketing cloud from a data extension that contains personalized dates. Also, when I preview the email, the date is displayed in the US format. I am looking ...
0
votes
1answer
22 views

Max width of an image in mc; defaulting to original width in outlook

This might be a simple question, but would anyone be able to help me set the max-width of an image in marketing cloud so that the picture doesn't default to its original size when downloaded in ...
2
votes
1answer
52 views

Accessing SLDS in a Custom Visualforce Email Template

<messaging:htmlEmailBody> <html> <body **class="slds-align_absolute-center"**> <p> All this must be center aligned</p> <p> All this ...
0
votes
1answer
46 views

getting EmailID of the emails in content Builder

I have created a different emails in the content builder and i would like to get the unique email id of the email using ampscript in data extension which will be used to determine the specific email ...
0
votes
1answer
50 views

Image “height” automatically added in Content Builder

I use custom HTML for my email templates. When a new image is uploaded into an email there is always an image heigth populated in the code. In a two column responsive content block we have to delete "...
0
votes
0answers
23 views

Unable to add attachment to the mail with html template

Users are unable to add the files to the mail while using an HTML template. Below is the screenshot which attachment icon being disabled once the HTML template is selected.
0
votes
0answers
20 views

Create EmailMessage Activity from Flow HTML Email

I have a flow that sends an Email Alert (so that I can use a specific template). Unfortunately after the email is sent their is no activity history of this action, naturally I want to populate and ...