Share Buttons - Customize Email Template

Follow

With Shareaholic Share Button templates you can customize the default message when sharing links via email. An email template applies your custom message to all email services, including Gmail, Outlook.com, Yahoo Mail and AOL Mail.

${title}, ${link}, ${short_link}, ${description}, ${notes} and ${source} placeholder variables are available for the email template. These will be dynamically substituted with the actual values. All template variables are optional. You can also use ${meta:____} placeholder variables to substitute from your page's meta tags, for example ${meta:og:title}.

There are two ways to set the email template:

  1. Codeless method - in the Admin UI, head over to Site Profile -> Settings -> Sharing -> Sharing Settings
    mceclip0.png
    mceclip1.png
  2. Code method - 
       <div class="shareaholic-canvas"
                data-app="share_buttons"
                data-app-id-name="post_below_content"
                data-app-config='{
                "templates":{
                   "email":{
                     "body":"A little hint that this caught my eye! ${link}",
                     "subject":"${title}"
                }}}'>
       </div>
        

If both code and codeless methods are set, code method will take priority.

Tip: You can place \n to designate a new line in your template's email body. Note that Yahoo Mail and AOL Mail do not accept newline characters, so a single newline is replaced with a space when sharing to those services.