
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.

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(); ?>&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!
21 Responses
It’s an useful recipe also for gmailers. Thanks
I think people like to retweet stuff nowadays.
I assume there is no way to do this without those email programs?
It is possible to do this straight from the site – with the user never having to get to their email client. However, it can be pretty involved (compared to this at least), and there are definitely some security precautions you want to get right (because you don’t want people sending spam from your comment form), so it’s usually best to leave it to a plugin. There are a number of them out there that do it.
Very useful tip. Some people overlook this option as addon, as they think people don’t use it. But in contrary, people use this option very much.
Can you please post the code for giving ability to link to the post page?
Just to make linking to your content simpler. Like:
Link to me:
Wp recipes
Can it be done with wordpress without much programming?
I’ve never seen mailing articles as useeful, but it is a nice tip.
I had concerns about using a mailto link on my site. I am testing how many people click on the link through Google Analytic Goals. We’ll see if we get any bump in traffic in relation to clicks.
Does anyone else know of a good way to track this?
Just what I needed, the simple things are the hardest to do sometimes. I have only just discovered this site, I’m telling all my web designer buddies about it now, also it’s become my first stop for all things wordpress. Now subscibing to your blog too, thanks.
Trackbacks: