You are here:
Email Sharing with Paste HTML Templates and Social Markup
The HTML code in this example creates an email in Email Studio with three separate content areas, each one defined by the @@ContentArea lines. The first commented part of the HTML email names the email Shared content Region 1, and the second commented part of the pasted HTML contains the creates the Social Markup link using the GetSocialPublishURLByName() AMPscript function. In this case, the Social Markup link refers to the aggregator ShareThis.
<html>
<head>
<title></title>
</head>
<body>
<table>
<tr>
<td>
To view this email as a web page, click <a href=
"%%view_email_url%%">here.</a>
<!-- RegionStart[ socialslot:"Shared content region 1",
title:"email",
description:"The monthly hot offers newsletter for Company X.",
csskey:"companyx"] -->
<table width="100%">
<tr>
<td>This is a great newsletter!!!<br />
<!-- Creates a link to share this content with ShareThis -->
<a href="%%=GetSocialPublishURLByName('Facebook','US','Shared content region 1','_stid','publisherID')=%%"
alias="Social Forward to ShareThis - email"
title="Publish to ShareThis">
<img
src="http://image.exct.net/lib/ffcf14/m/1/social_default_facebook_icon.jpg"
alt="ShareThis"
title="ShareThis" border="0" /> ShareThis</a> using Facebook, email and more.
</td>
</tr>
</table>
<!-- RegionEnd[ socialslot:"Shared content region 1"] -->
<table cellpadding="2" cellspacing="0" width="600" id="Table5" border=
"0">
<tr>
<td><font face="verdana" size="1" color="#444444">This email was
sent to: %%emailaddr%%<br />
<br />
<b>Email Sent By:</b> %%Member_Busname%%<br />
%%Member_Addr%% %%Member_City%%, %%Member_State%%,
%%Member_PostalCode%%, %%Member_Country%%<br />
<br /></font></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>

