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.

318 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
11
votes
1answer
617 views

JS Synchronous Calls - Email with Attachment

I'm trying to set up a JS button on a SFDC object record that sends an email to a recipient with a specific attachment from the Notes and Attachment related object. Would I theoretically be able to ...
8
votes
0answers
220 views

Salesforce doesn't merge fields on email sent in platform event context

I have a process that runs every day in the morning. It is a scheduled class that publishes a platform event. When this event is run by the system, it collects some records and sends emails to some ...
8
votes
1answer
147 views

How can I reproduce the EmailAuthor native SFDC application?

I'm comfortable with sending emails using APEX and using mailmerge within that process. What I want to do now is load an email template, mailmerge it automatically using a predetermined contact ID and ...
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 ...
4
votes
0answers
805 views

Automated Process User Permissions

We are having some difficulty with permissions. Our admin has also posted on the success board. https://success.salesforce.com/answers?id=9063A000000eB7V, she also found this same posting: https://...
4
votes
1answer
701 views

Email publisher: Don't override subject when selecting template

I have a question involving the Case feed email publisher. For a customer I am currently implementing their Service Cloud. The customer is used to do alot of communication over email and in addition ...
4
votes
0answers
658 views

Can we conditionally render text in a non-Visualforce email template on a picklist?

I'm working on designing an HTML template as a possible workaround to a problem with Visualforce templates refusing to send when triggered from a workflow rule where the ownership changes, and the old ...
3
votes
1answer
187 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 ...
3
votes
0answers
100 views

Email Template - SObject row was retrieved via SOQL without querying the requested field: Serial_Number__c.Template_Item_Displayname__c

I have the following in an email template, which works: <!-- template item display name --> <apex:outputText rendered="{!NOT(ISBLANK(relatedTo.Template_Item_Displayname__c)) && NOT(...
3
votes
1answer
52 views

Best approach to translating numerous email templates

The Problem: I have approximately 30 different email templates that are being sent out to applicants during an application process. Applicants have 3 language options: English, French & Portuguese....
3
votes
0answers
140 views

Make Chatter Profile Photo available externally?

I'm working on making some email templates, made of various visualforce components. One of these includes some information about a user they'll be interacting with. Additionally, this component ...
3
votes
0answers
710 views

Email images not displaying ONLY in Outlook Desktop

EDIT: I posted a similar question (attacking this problem from the Outlook end) over at Super User: link I have an email template that uses a letterhead with an image (document) at the top. I have ...
3
votes
0answers
311 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 ...
3
votes
0answers
107 views

Un-Escaped HTML for Variables in Guide Template Language Not Working

We have HTML templates in ExactTarget that use variables passed in via the REST API. The variable contains text with HTML entities. I read the following documentation for the Guide Template Language....
3
votes
0answers
118 views

Visualforce Email Template Page Break

Is there any way to force email template to continue as a second page ? I tried "page-break-before:always" "page-break-after:always" but it does not work for me. What can i do to add page break to ...
3
votes
0answers
937 views

Edit Custom Email Template before sending

I've setup several template emails that are the custom format. I'd like to be able to choose this template from a lead and edit before sending. Right now when I click the custom template it doesn't ...
3
votes
0answers
498 views

Mulilingual portal reset password notification email

I implemented the logic to reset a partner portal user password from a visualforce page. The form successfully resets the partner user's password and sends an email using this code in the ...
3
votes
0answers
2k views

Effect of disabling “Send welcome email” checkbox in Customer Communities?

when you edit a Customer Community config and click the Email tab, you get the following setting: However, I've found that when I uncheck this checkbox, that same email template is still sent to new ...
3
votes
0answers
141 views

What is the order of assignment/autoassociate and auto response with web-to-lead?

I have a scenario, I need to auto associate new leads into campaigns, and send a customized email to them. The auto-assignment and the auto-association both work perfect. However, the HTML template I ...
2
votes
0answers
29 views

Looking for the most responsive and reliable basic template in the Marketing Cloud

I started using SFMC's "Basic" templates as well as some "Themed" templates for one of our customers. But as we started sending emails, even though we had tested the emails on a few platforms, it ...
2
votes
0answers
34 views

Yes/Maybe/No buttons not appearing for ICS calendar visualforce email attachment

Background I am using <messaging:attachment to generate a .ics calendar invite as an attachment as part of a visualforce email template. <messaging:attachment filename="invite.ics" renderAs="...
2
votes
1answer
119 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 ...
2
votes
0answers
102 views

which is best approach for custom email alerts, Declarative vs Programmatic?

Object_A and Object_B are two related(Lookup) objects in Salesforce, where A is parent and B is child. Requirement is, when a new Object_B record is created, an email alert should be sent to Object_B ...
2
votes
0answers
19 views

Scheduled Event invitees response template

When we add Attendees in an event then a email is sent out Template to Attendees Email Id. how can i track that template id and how to Modify that Event Response template. Based on that template id i ...
2
votes
1answer
429 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
0answers
109 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 ...
2
votes
0answers
79 views

Apex:composition within a VF email template doesn't work

We're trying to use apex:composition in a Visualforce email template. This works fine if I simply do this: <messaging:emailTemplate subject="Template Example" recipientType="Contact"> <...
2
votes
0answers
35 views

Can I use a SelectList in a VisualForce email template?

I have a VisualForce email template which is used to send a list of products to customers. The products are listed in a table in the email and I would like the end column to be a picklist with options ...
2
votes
0answers
205 views

Set User context in Email Template

I would know if it's possible set a "User" for an email template. In a my email template I use {!User.Name}. I have a class and a trigger on CollaborationGroupMember and I send an email each time ...
2
votes
0answers
575 views

Importing CSS & JS into portfolio and referencing them

I need to build email templates and have already been provided with the source code. I have encountered 2 issues: When I try to reference the CSS I have uploaded in the portfolio, SFMC doesnt seem to ...
2
votes
1answer
2k views

EmailTemplate.body.replace() does not work for HTML templates with letterheads

I have to replace some contents in HTML body but when I user HTML with letterhead,it does not work and if I use email template without letter head then it works but when i receive an email,it always ...
2
votes
0answers
309 views

Apex Email result isSuccess true but not receiving any email

I am trying to send automatic reminder emails about approvals which have been waiting over 2 days. So I created a schedulable apex to check ProcessInstanceWorkItems and send email to approver and ...
2
votes
0answers
399 views

VisualForce Email Template as part of a WorkFlow - merge fields not populating for a specific field update

I have the below VisualForce Email Template: <messaging:emailTemplate subject="[Email] #{!relatedTo.CaseNumber} - {!relatedTo.Subject} - {!relatedTo.Contact.Name}" recipientType="User" ...
2
votes
0answers
304 views

Merge field syntax in email templates for Campaign Members

I'm trying to create a basic text email template to use in a workflow rule that will be sent out when a Campaign Member is created. I have read here that there are differences in how the syntax should ...
2
votes
1answer
317 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 ...
2
votes
0answers
347 views

Journey Builder/Communities - Welcome Email - Registration URL

We would like to utilise Journey Builder to send the Welcome Email to new community users with the registration link. Salesforce provides this link in email templates via {!Community_URL} and via the ...
2
votes
0answers
907 views

How to add image in email template dynamically?

I have a letterhead that I'll be using for different Email template. On VF page, I have a button which will take the screenshot of the page and store in a rich text field in a custom object. The ...
2
votes
1answer
103 views

Long Community password reset URL is overflowing table in Outlook 2013 html email

I am not finding a solution to get a long URL to wrap inside of a <table> <td> The URL wraps in other email clients I have test but not in Outlook 2013 Here is a small screen grab from ...
2
votes
0answers
127 views

Clarification on SingleEmailMessage changes in Winter '16

Anyone knows the implications of this new method? setTreatBodiesAsTemplate(treatAsTemplate) Optional. If set to true, the subject, plain text, and HTML text bodies of the email are treated as ...
2
votes
0answers
269 views

Merge field not populated in the subject of a Text Email Template

I am facing the following issue: I have specified an email template that points to an Account record. I have included in the body and the Subject both, merge fields. The values in the body of the ...
2
votes
0answers
3k views

How could I do line breaks (/n or /r/n) on Messaging.SingleEmailMessage PlainTextBody?

I know this question is asked before and could found in the below links, (I am posting this as I want to post my code with some changes to the solutions provided in the below links.) PlainText email ...
2
votes
0answers
574 views

email format not consistent with visualforce email template

i'm using visualforce email templates to receive mail but seems the format is not the same as in template when the mail is recieved, used both style and inline style but seems not to work: <...
2
votes
1answer
403 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 ...
2
votes
0answers
403 views

Can I direct the detail link in an email template to a specific url

We have all of our users login through a proxy server instead of going directly to login.salesforce.com but when I add a detail link (i.e. {!Opportunity.Link}) to an email template/alert the user is ...
2
votes
0answers
51 views

HTML Email Teamplate Issues SF

In the HTML email template I want to distinguish between internal and external user while sending any email. I tried using If loop and it worked for me but while I try to access certain merge fields ...
2
votes
0answers
48 views

Not able to populate Partner Account field in HTML email template

I want to populate the Partner Account field value in a HTML email Template. This field is a standard lookup field(Account) and available on Opportunity page. while updating the template I do not see ...
2
votes
0answers
328 views

Overriding the “Select Template” button in Email Author

Is there a way to over-ride the "Select Template" button in the Salesforce standard email author page with a custom visualforce page ?
2
votes
0answers
697 views

ReplyTo email address using Visualforce email templates but sending through apex

I have been working on creating a Visualforce page that allows you to choose users and send out emails to those users using apex. The problem I have run into is that the email address that the user ...
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 ...
2
votes
0answers
3k views

Dynamic Email Template Body

I have a requirement where I need to send the email template and also allow the use to change it and then send the content. I am able to send email and attach a VF template dynamically. But I am not ...