Email Links
Posted July 15th, 2004 @ 08:52pm by Erik J. Barzeski
The chevrons (») seen in the titles on the main and individual pages here now function as "email a friend this article" links. Click them and you'll see what I mean. Here's the very simple code. The trickiest part was the "%0D" for carriage returns.
<a href="mailto:?subject=<?=str_replace(" ", "%20", "<MTEntryTitle>");?>
&body=Hi,%0D%0DI%20thought%20you%20might%20find%20this%20interesting!%0D%0D
<<MTEntryPermalink>>%0D%0D" title="Email <MTEntryTitle> to Someone">»</a>
A snap!
Posted 16 Jul 2004 at 12:29am #
Doesn't quite work for me using Mail.app. Everything gets put into the subject line. Perhaps you need
...mailto:?subject=Email%20Links&body...
instead of
...mailto:?subject=Email%20Links?body...
Posted 16 Jul 2004 at 8:29am #
Probably correct, and it now uses an & instead of a ?