[thelist] mailto links & Outlook subjects

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Fri Dec 17 12:10:09 CST 2004


	Almost perfect.

	You don't have to encode your ampersands in the querystring.  In
fact, if you do, you'll probably get some unwanted characters in your
subject line.

-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of apathetic

On Fri, 17 Dec 2004 11:27:47 -0500, Jono <ox4dboy at comcast.net> wrote:
> This is the link code:
> <a href="mailto:Enter your friend's email address?subject=Subject of 
> the email?body=http://www.linktogointobody.html" title="Email a link 
> for this property to a friend.">Email this to a Friend</a>

The second ? needs to be &.  Query strings should have the structure:

?field1=value1&field2=value2

Because you are in HTML, the & should be encoded as &amp;, making the
correct code:

<a href="mailto:Enter your friend's email address?subject=Subject of the
email&amp;body=http://www.linktogointobody.html" title="Email a link for
this property to a friend.">

Tim




More information about the thelist mailing list