---
schema_version: "1"
id: 534ea59ba0b76b73b414a1cbecab9b3394bd51a7b8722b373ef06723e2449016
title: Email Sharing with Paste HTML 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.md
canonical_url: https://help.salesforce.com/s/articleView?id=mktg.mc_es_email_sharing_paste_html.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 680c886e8b5770277cffa75dfca5d9ca5aa55708ef997c4a6b119db59a0635a7
description: The HTML code in this example shares the content of an email from Email Studio to Facebook. The first commented part of the pasted HTML names the email Shared content Region 1, and the second commented part of the pasted HTML contains 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 and Social Markup

The HTML code in this example shares the content of an email from Email Studio to Facebook. The first commented part of the pasted HTML names the email Shared content Region 1, and the second commented part of the pasted HTML contains 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>
```