Subscribe to
NSLog(); Header Image

Email Links

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>");?>
&lt;<MTEntryPermalink>&gt;%0D%0D" title="Email <MTEntryTitle> to Someone">&raquo;</a>

A snap!

2 Responses to "Email Links"

  1. Doesn't quite work for me using Everything gets put into the subject line. Perhaps you need


    instead of


  2. Probably correct, and it now uses an & instead of a ?