Loading
Feature degradation | Gmail Email delivery failureRead More
Email in Marketing Cloud Engagement
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Paste HTML Email Share

          Paste HTML Email Share

          Social Forward in Email Studio can share an entire email instead of sharing select content areas from a message. This functionality uses a Paste HTML email in Email Studio.

          Shared Content Definition

          HTML in the email message requires comment tags to share the content:

          <!-- RegionStart[ socialslot:"SharePasteHTML", title:"Sharing an entire Paste HTML email", description:"Sharing an entire email to Facebook and LinkedIn"] -->

          The entire Paste HTML email code follows the RegionStart tag.

          <!-- RegionEnd[ socialslot:"SharePasteHTML"] -->

          The RegionStart statement belongs after the table which contains the link for viewing the email as a webpage and before the HTML for the footer information at the bottom of the email.

          Social Networks Definition

          This example displays sample code for sharing to Facebook and LinkedIn:

          <a href="%%=GetSocialPublishURLByName('Facebook','US','SharePasteHTML')=%%" alias="Social Forward to Facebook - SharePasteHTML" title="Publish to Facebook"><imgsrc="http://image.preview.exacttarget.com/lib/ffcf14/m/1/social_default_facebook_icon.jpg" border="0" alt="Facebook" title="Facebook"></a>
          <a href="%%=GetSocialPublishURLByName('LinkedIn','US','SharePasteHTML')=%%" alias="Social Forward to LinkedIn - SharePasteHTML" title="Publish to LinkedIn"><imgsrc="http://image.preview.exacttarget.com/lib/ffcf14/m/1/social_default_linkedin_icon.jpg" border="0" alt="LinkedIn" title="LinkedIn"></a>

          For both the Facebook and LinkedIn links, the hrefattribute calls the AMPscript function GetSocialPublishURLByName to share the defined region SharePasteHTML. The second argument of the function must match the defined title in the RegionTitle tags. The first argument of GetSocialPublishURLByName defines the social network with which to share the email. In this example, the links identify Facebook and LinkedIn.

          Example
          Example

          This example shows the HTML for the entire email message, including the unshared view as a webpage link at the top and footer and the bottom.

          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
          <html>
              <head>
                  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
                  <title>Thank you for your interest in Email.</title>
                  <style type="text/css">
                   html body { margin: 0; padding: 0; font: 0.76em normal Arial, Verdana, Helvetica, sans-serif; color: #554; }
                   #cntr { width: 600px; }
                   #cntr .cnt { margin: 1.0em }
                   #cntr .cnt span { font-size: 1.5em; color: #000; }
                   #cntr .cnt strong { font-size: 1.0em }
                  </style>       
              </head>
              <body bottommargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0" topmargin="0">
                  <table width="600" cellpadding="0" cellspacing="0" border="0" align="center">
                      <tr>
                          <td valign="top" align="left"><font face="verdana" size="1" color="#444444"><p>To view this email as a web page, go <a href="%%view_email_url%%" alias="View as a Web Page"> here.</a></p></font></td>
                      </tr>
                  </table>
                  <!-- RegionStart[ socialslot:"SharePasteHTML", title:"Sharing an entire Paste HTML email", description:"Sharing an entire email to Facebook and LinkedIn"] -->
                  <div align="center" style="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: #333;">
                  <div id="cntr" align="left" style="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: _fckstyle="background-color: #FFF;"></div>
                  <div class="nav" style="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: _fckstyle="height: 50px; width: 600px; background: #222 url('http://image.exct.net/8c953a0c-d.jpg');">
                  <table width="100%" cellpadding="0" cellspacing="4" border="0">
                  <tr>
                  <td valign="left">Thanks for your interest in Social Forward!</td>
                  </tr>
                  </table></div>
                  <div class="cnt" style="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: _fckstyle="border-bottom: 1px solid #CCC; margin: 1.0em">
                      <p>At the bottom of the email, you can see Facebook and LinkedIn icons. Click them to share your content to the appropriate social network.</p>
                      <p>You can share this entire email via Social Forward!</p>
                      <p>
                          <a href="%%=GetSocialPublishURLByName('Facebook','US','SharePasteHTML')=%%" alias="Social Forward to Facebook - YahooPasteHTML" title="Publish to Facebook"><img src="http://image.preview.exacttarget.com/lib/ffcf14/m/1/social_default_facebook_icon.jpg" border="0" alt="Facebook" title="Facebook"></a>
                          <a href="%%=GetSocialPublishURLByName('LinkedIn','US','SharePasteHTML')=%%" alias="Social Forward to LinkedIn - YahooPasteHTML" title="Publish to LinkedIn"><img src="http://image.preview.exacttarget.com/lib/ffcf14/m/1/social_default_linkedin_icon.jpg" border="0" alt="LinkedIn" title="LinkedIn"></a>
                      </p>
                  </div>
                  </div>
                  </div>
                  <!-- RegionEnd[ socialslot:"SharePasteHTML"] -->
                  <table cellpadding="2" cellspacing="0" width="600" border="0" align="center">
                      <tr>
                          <td valign="top" align="left" style="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: _fckstyle="line-height: 16px;">
                              <p><font face="verdana" size="1" color="#777777">This email was sent to:  <b>%%emailaddr%%</b><br />
                              <a href="%%subscription_center_url%%" alias="Manage Subscriptions">Manage Subscriptions</a> |
                              <a href="%%profile_center_url%%" alias="Update Profile">Update Profile</a> |
                              <a href="%%unsub_center_url%%" alias="Unsubscribe">One-Click Unsubscribe</a></p>
                              <p>This email was sent by: <b>%%Member_Busname%%</b><br />%%Member_Addr%% %%Member_City%%, %%Member_State%% %%Member_PostalCode%% %%Member_Country%%</p>
                              <p>We respect your right to privacy - <a href="http://email.exacttarget.com/ETWeb/company.aspx?id=80" alias="View Privacy Policy" style="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: _fckstyle="color: #0000ff">view our policy</a></p>
                              </font>
                          </td>
                          <td width="145" align="right" valign="center"><a href="http://www.marketingcloud.com" title="This email is Powered By Salesforce Marketing Cloud Engagement" alias="Powered By"><img src="http://email.exacttarget.com/images/Powered_By_1206.jpg" width="124" height="55" alt="This email is Powered By Salesforce Marketing Cloud Engagement" border="0" /></a></td>
                      </tr>
                  </table>
              </body>
              <custom name="opencounter" type="tracking">
          </html>
           
          Loading
          Salesforce Help | Article