DISCLAIMER: this post is older than one year and may not be up to date with latest WordPress version.

Many websites allow their visitors to send their articles to friends, so why not implement it on your WordPress blog? The following recipe contain an easy solution to do it.

To achieve this recipe, simply open your single.php template and paste the following code within the loop, where you want the “Email this” link to be displayed:

<a href="mailto:?subject=<?php the_title();
?>&amp;body=<?php the_permalink() ?>" title="Send this
article to a friend!">Email this</a>

That’s all. Please note that it will only allow visitors using a mail software as such as Thunderbird or Outlook to email their friends.

This article has been submitted by chonchon. Have a good WordPress recipe that you’d like to share with the community? Contribute to WpRecipes!


Leave a Comment

Your email address will not be published. Required fields are marked *