---
schema_version: "1"
id: 8099a6dfdf85f61eff7d0b774e6326508c4d3aaa3eba906f69fca737b3711d4f
title: Email Sharing with Paste HTML Templates and Social Markup
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/mktg/264-0-0/mc_es_email_sharing_paste_html_template.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_es_email_sharing_paste_html_template.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f693341d90065816298f535cb35cb299596898505b0dbae4fea7c2fa5139635c
description: 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.
products:
  - Marketing
  - Marketing Cloud Engagement
release: "264"
---
# 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.

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-mktg-mc_email-264-0-0-production-enus/a0b807ef-dfbb-412c-b26e-310d91f2d6df/images/icon_example.png)

Example

```html
<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>
```