How to: Allow your visitors to send your articles by email to their friends

March 27, 2009 at 8:31 am

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!