Revision: 21446
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at December 13, 2009 10:12 by gd6d
Initial Code
Just paste the function below into your functions.php file. function direct_email($text="Send by email"){ global $post; $title = htmlspecialchars($post->post_title); $subject = 'Sur '.htmlspecialchars(get_bloginfo('name')).' : '.$title; $body = 'I recommend this page : '.$title.'. You can read it on : '.get_permalink($post->ID); $link = '<a rel="nofollow" href="mailto:?subject='.rawurlencode($subject).'&amp;body='.rawurlencode($body).'" title="'.$text.' : '.$title.'">'.$text.'</a>'; return $link; }
Initial URL
http://www.webinventif.fr/wordpress-lien-envoyer-page-mail/
Initial Description
Initial Title
Send Article to a Friend by Email
Initial Tags
mail, wordpress
Initial Language
PHP