Secure Your Mail

paste the following code in your functions.php file

<?php
function wpe_secure_mail($atts) {
extract(shortcode_atts(array(
“mailto” => ”,
“txt” => ”
), $atts));
$mailto = antispambot($mailto);
$txt = antispambot($txt);
return ‘‘ . $txt . ‘‘;
}

if ( function_exists(‘add_shortcode’) )
add_shortcode(‘sm’, ‘wpe_secure_mail’);
?>

This shortcode will be used to write in your post/page:

[sm mailto=”foo@bar.com” txt=”here is my mail”]
//or
[sm mailto=”foo@bar.com” txt=”foo@bar.com”]


Secure Mail