/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function direct_email($text="Send by email"){ global $post; $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; }
URL: http://www.webinventif.fr/wordpress-lien-envoyer-page-mail/