[thelist] mailto links & Outlook subjects

apathetic apatheticgenius at gmail.com
Fri Dec 17 11:14:39 CST 2004


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

-- 
Elaborate - Free PHP/MySQL wiki engine
http://www.apatheticgenius.com/projects/elaborate/


More information about the thelist mailing list