Location: PHPKode > scripts > Email Me > emailme/emailme.php
<?php
/**
 * @package emailme
 */
/*
Plugin Name: Email Me
Plugin URI: http://freedomonlineservices.net/resources/homegrown/emailme-wp-plugin/
Description: Creates an email link from the shortcode [emailme] that spam bots don't find. By default it uses your wp admin email but you can specify as parameters either 'name' (for the first portion of the email before the @ symbo),'addr' for the full email or 'display' for what the link should actually display in between the <a> tags.
Version: 1.0
Author: Rob Kay
Author URI: http://freedomonlineservices.net
License: GPLv2 or later
*/
function shortcode_email($atts)
{
$admin_email = get_option('admin_email'); 
extract(shortcode_atts(array('addr' => $admin_email, 'display' => '', 'name' => ''), $atts));
$ar=split("@",$addr);
if($name!='')
 $ar[0]=$name;
if($display=='')
$disp=$ar[0].'@'.$ar[1];
else
$disp=$display;

return '<script language="JavaScript"><!--
var name = "'.$ar[0].'";
var domain = "'.$ar[1].'";
var disp = "'.$disp.'";
document.write("<a href=\"mailto:" + name + "@" + domain + "\">");
document.write(disp + "</a>");
// --></script>';
}
add_shortcode('emailme', 'shortcode_email');
?>
Return current item: Email Me