Allow Readers to Recommend your Blog with WP-Email
Do you want your Blog Readers to recommend or invite Friends to view your blog? The Plugin, WP-Email created by Lester ‘GaMerZ’ Chan allows you to allow your readers to invite people to view your blog.
The plugin is very customizable, it lets you customize the email that gets send to the person the blog is being recommended to, along with being able to limit the number of words that gets sent from an article that is being recommended and more. You can find the other functions on the WP-Email documentation.
All emails that are sent, are logged into the WP-Admin interface and you view details right in the Dashboard area. It shows From, To, Date/Time Sent, IP/Host, Post Title (where the invite was sent from) and the Status of the Email.
If you are interested in downloading and installing this plugin, you can find it on the Wordpress Plugins Repository and on Lester Chan’s Website.
How To: Adding an Email This Button to Your Blog
In the past we’ve talked about how to add a print button to your WordPress theme. Today I wanted to give you the javascript code you need to create an Email This button on your WordPress blog.
Before getting to the code, I wanted to first say that this code is designed to allow readers to click on the button and have it open up their default email software and create a subject and link that point to the post the reader is currently visiting. This code is not designed to allow readers to contact the blog author.
If you are wanting your readers to be able to contact you, I recommend you use one of the many great contact form WordPress plugins available. You should never embed your email address into some HTML code because it will be picked up by spam bots. Contact forms prevent spammers from finding your email address. The other thing you can do is offer “EmailAddress AT EmailCompany DOT com” (which your email address information filled in) to avoid spammers.
Okay, so back to the Email button code. Here is the javascript you will need:
<script type="text/javascript">
<!-- Begin
function isPPC() {
if (navigator.appVersion.indexOf("PPC") != -1) return true;
else return false;
}
if(isPPC()) {
document.write('<a class="contact" HREF=\"mailto:\?subject\=Take a look at this page I found, ‘ + document.title + ‘?body=You can see this page at: ‘ + window.location + ‘\” onMouseOver=”window.status=\’Send your friends e-mail about this page\’; return true” TITLE=”Send your friends e-mail about this page”>Email to a Friend<\/a>’);
}
else { document.write(’<a class=”contact” HREF=\”mailto:\?body\=Take a look at this page I found titled ‘ + document.title + ‘. You can see this page at: ‘ + window.location + ‘\” onMouseOver=”window.status=\’Send your friends e-mail about this page\’; return true” TITLE=”Send your friends e-mail about this page” rel=”nofollow”>Email This!<\/a>’);
}
// End –>
</script>
This will create an email where the reader can enter in someone’s email address and send them a link to your post/page.















