Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Contact" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for contact that demonstrates how to use the unsubscribe link visualforce object.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Contact Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:htmlEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
<P>Dear Friend,</P>

<P>It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!</P>

<P>Your friend,</P>

<P>Bob</P>


<c:UnsubscribeLink recipientId="{!recipient.Id}"></c:UnsubscribeLink> <!-- This is the custom component
which can be added to any visualforce email template. It is compatible with both leads and contacts. -->
</messaging:htmlEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link visualforce object.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Lead Template</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<messaging:emailTemplate subject="Edit this subject" recipientType="Lead" >
<messaging:plainTextEmailBody > <!-- When creating a new visualforce template, the default option is plainTextEmailBody.
the unsubscribe link will note appear in that case. Convert any visualforce templates to htmlEmailBody before
adding the visualforce component -->
Dear Friend,

It's Thursday! You love to order a pizza on Thursdays! If you order before 5, I'll also throw in some free drinks!

Your friend,

Bob

Copy and paste this in your browser to unsubscribe:
{!Recipient.Unsubscribe_Url_Plain_Text__c} <!-- This field can be
added to any plain text contact or lead email to display the url-->
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<EmailTemplate xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>64.0</apiVersion>
<available>true</available>
<description>Sample template for lead that demonstrates how to use the unsubscribe link field in a plain text Visualforce email.</description>
<encodingKey>UTF-8</encodingKey>
<name>Sample Lead Template-Plain Text</name>
<style>none</style>
<subject>Edit this subject</subject>
<type>visualforce</type>
<uiType>Aloha</uiType>
</EmailTemplate>