If you would like to share emails sent through the Platform to Social Media, this can be achieved with some edits to the HTML of email or the email template you are using. 


The code below should be added within the <head> insert code here </head> tags of the email HTML. The areas highlighted in yellow are where you need to put the full path to the image you want displayed. 

  


    <link rel="image_src" href="full path to image">

    <meta prefix="og: http://ogp.me/ns#" property="og:image" content="full path to image"/>

    <meta property="og:title" content="[email:subject]" />

    <meta property="og:description" content="[email:subject]" />

    <meta name="og:image" content="full path to image">

    <meta property="og:type" content="website" />



Example with full image path:   

  <link rel="image_src" href="https://www3.dmpemail1.com/platformadmin/media/images/logo.gif">

    <meta prefix="og: http://ogp.me/ns#" property="og:image" content="https://www3.dmpemail1.com/platformadmin/media/images/logo.gif"/>

    <meta property="og:title" content="[email:subject]" />

    <meta property="og:description" content="[email:subject]" />

    <meta name="og:image" content="https://www3.dmpemail1.com/platformadmin/media/images/logo.gif">

    <meta property="og:type" content="website" />




You will need to include "Send to Facebook" and/or "Send to Twitter" links somewhere in the body of your email. 


Facebook Link


Example: https://www.facebook.com/sharer.php?u=[weblinkURL]&quote=[email:subject] 

  • Quote=can be fixed text, or these dmp variable tags, or a mixture of them.


Twitter Link


Example:

https://twitter.com/intent/tweet?text=[email:subject]&url=[weblinkURL]&hashtags=one,two,three&via=twitterusername

  • hashtags=Do not use "#"in front of the hashtags. 
  • text=can be fixed text, or these dmp variable tags, or a mixture of them; 
    [email:campaign_name] [email:subject] [email:sender_email][email:sender_name] 
  • via=is a twitter @username for attribution or source of the content for attribution. 
    Do not use the '@' 



Content examples


This is an example of an email with links to forward to Facebook and Twitter:

This is the HTML used to generate that email


This is what the resulting Social Media Posts will look like, when the email is forwarded by using the links in the email.


Facebook:


Twitter:

 
No image will display on Twitter posts which have been forwarded. The link will click thru to the email the user forwarded.