Questions tagged [vf-email-template]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Visualforce Email template recipient type with multiple customized objects. Create customized object

Requirement is to use email template with visual force components, and send an email for each environment the contact is associated to. For example, contactA is associated with env1, env2, and env3. I ...
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
4answers
56 views

Unable to retrieve {!recipient.Fieldname} values in custom visual force email template

I have created a custom visual force email template as below. When I use this template, I am unable to retrieve {!recipient.Fieldname} values in the received email. Flow: Create a new Event from a ...
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
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 ...
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
46 views

Embed a custom component in lightning email template

There are several VF email templates in my org which internally references VF components. These components have custom functionality of querying different objects and preparing a custom result which ...
0
votes
0answers
13 views

Visualforce Template Custom BCC field

I'm currently working with the Welcome email from a lightning community which is using a Visualforce email template which allows to be dynamic based on the user and experience offered in the community....
0
votes
0answers
15 views

VF Email template - send different bodies to same person

I have a batch which I use to send emails to contacts - the emails are Messages about courses - so Each Contact should have the same email template repeatable with a different body. So, I created a ...
0
votes
0answers
20 views

Prevent Sender from getting CC'ed in SingleEmailMessage

I have a class which sends mail to Account's Email field whenever some update happens on that Account. But for some reason, the user who made the change on that Account is also getting the mail - I ...
0
votes
0answers
45 views

How to render blob pdf file from Attachment or Notes of a record in visualforce component?

I created a visualforce email template that should attach a file from a record Attachment which is of pdf format. How to render blob pdf file from Attachment or Notes of a record in visualforce ...
0
votes
0answers
32 views

Is it possible to schedule sending a VF Page via Email?

We have this requirement that says we need to schedule once a month the sending of a VF page that contains custom dashboard charts via email. So if we break this requirement down, we need to do the ...
0
votes
0answers
20 views

Get the field values from the grandchildren records on the email template used in the workflow on the parent

I have a workflow rule on Opportunity which sends an email alert. Email template currently being used is text email template. Opportunity->Proposal->Proposal Line item. We have a field BillingCycle on ...
0
votes
1answer
249 views

Visualforce Email Template - broken images for all Email Clients? Workaround?

I have a case open with Salesforce, but I usually have better luck here. I have tested an email template on numerous mail clients - Outlook 2010, Outlook OWA, Gmail, and Yahoo. However all of them ...
1
vote
1answer
110 views

VF Email Template throws List has no Rows to sObject when invoked via VF Component

I'm facing an issue with VF Email Template. The error is not very Clear : "Error Error occurred trying to load the template for preview: List has no rows for assignment to SObject. Please ...
0
votes
1answer
2k views

Get community link in email template

In the Visualforce page context, we have the $Site.Prefix formula available to get the community's path prefix so we can adapt our link for the internal users. I'm wondering if something similar can ...
1
vote
0answers
405 views

Attach File/ContentVersion into a standard visualforce email template

I have an api that gets pdf invoices and stores them as Salesforce Files. I then want the sales rep to be able to send the email template with the pdf attached. Using standard visualforce email ...
1
vote
0answers
82 views

Add existing attachment in visualforce Email template via workflow

I have a scenario that when billing is generated in system. Invoice should be send through mail to Person Account Email. I am doing this via workflow. In workflow I have a VF email template which ...
0
votes
0answers
39 views

Email Sending when task is created

I have a requirement to send out emails when tasks are assigned to the assigned user. These tasks are specific for cases, meaning tasks are created only for cases. The template has the subject line ...
0
votes
1answer
136 views

How to Avoid Exponential Value(2.0E+7) in VF Email Template?

I have designed VF Email template inwhich when I closed an opportunity,it sends notification email to owner of record. Below is the VF page that I designed: <messaging:emailTemplate subject="...
1
vote
0answers
417 views

Help in debugging VF Email template

I have a VF email template created that uses a VF component with attribute URLType which gets the value dynamically on Email from the controller for a community URL(External) and salesforce URL (...
0
votes
1answer
114 views

How to send the Case attachment in an alert email using VF Email Template?

I want to send the Case attachment in an email to Risk & Legal team when Manager approves the request. For this I have created the VF Email Template (Because in Email Template I have header, ...
1
vote
1answer
999 views

How to load images (Header and footer) in the VF Email template?

I am looking to load the header and footer images present in the Document tab When I click on the URL: https://c.cs53.content.force.com/servlet/servlet.ImageServer?id=0150j000000DHQL&oid=...
2
votes
1answer
26 views

How to print data in VF email template without line break?

I am working on the salesforce VF email template. I want to show the details like below. Cofidentials In my younger and more vulnerable years my father gave me some advice that I've been turning over ...
3
votes
1answer
844 views

How to create the fixed width table in VF Email Template or using html?

I am creating a VisualForce Email Template and I have a table (exactly the same shown below in screen shot) which I want to show using either html or VF, but doing below in VF looks very difficult and ...
3
votes
3answers
2k views

Error Error: Unsupported type: common.api.soap.wsdl.Address used in expression: relatedTo.Account.PersonMailingAddress

I am new to the salesforce and creating an VisualForce Email Template and I have a field which I want to show in VF Email Temlate, but when I am trying to show it Account object is having the below ...
0
votes
1answer
382 views

Error Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of messaging:emailTemplate

I am facing the below error while creating the VisualForce Email Template. Why? Error Error Error: Invalid child of messaging:emailTemplate. Only messaging components are allowed as children of ...
1
vote
0answers
377 views

Visualforce Email Template Error

I am trying to enable automatic Visualforce Email Template, but I get the following error message on Visualforce Email Template Edit page: Error occurred trying to load the template for preview: ...
0
votes
1answer
313 views

alignment problem in Vf email template

I have an email alert where a VF email template is used. and one VF component is used in the email template I'm facing alignment problem in Outlook desktop version but not in outlook web version . ...
0
votes
1answer
154 views

visual force component in salesforce [duplicate]

Visual Force Component: <apex:component controller="myController1" access="global"> <p /> <apex:outputLink id="urlString" value="{!url}/{!$User.Id}?noredirect=1&...
1
vote
1answer
289 views

Using VisualForce Email templates

I have Contacts object (contains the employees) and a Custom object called Organizations (which has the list of companies) and they are related using Lookup relationship (there is a lookup field on ...
1
vote
1answer
3k views

How to show the todays date in VF Email template in salesforce

I am using {!Today} in a Custom Email Template and it is showing today's date. But I need to change the template to VF template and I am getting a error. Can suggest how can I show today's date ...
2
votes
2answers
359 views

VF Email Template With VF Component Not Working For Community Forgot password

I had changed Email template for "Forgot Password" as VF Email Template that contains a VF Component in Salesforce Community. But when that VF Email Template -->VF Component have controller then email ...
2
votes
1answer
1k views

How to get Visualforce Email template content in apex?

I have a requirement where i have to use Visual force Email template.so, i have created a vf email template.Now i want to get that vf email body in apex controller.i now if i use custom HTML template ...
0
votes
1answer
553 views

Link to Report on VF Template

Is there a way to add an Link to a particular report onto the visualforce email template. example:<apex:outputLink value="{!LEFT($CurrentPage.URL,FIND('/',$CurrentPage.URL,9))+'/'report.id}">...
2
votes
1answer
491 views

Rendering an Email Template with merged values

A while back I accidentally discovered this GREAT feature of Salesforce where I could display a merged email template via a URL. It was a great feature to show sample emails in my help documentation....
1
vote
1answer
324 views

Sending an VF Template Using Apex

I am trying to send an VF Template using the Schedular Apex. when i run the code below is the error message received: FATAL_ERROR System.EmailException: SendEmail failed. First exception on row ...
0
votes
1answer
815 views

Getting VF Email Template Content in Apex

I have a VF email template and in apex I want to get it's content and will replace its merge fields. I am using below code but it gives null value. EmailTemplate et = [select body,htmlvalue,...