Forum Moderators: open

Message Too Old, No Replies

Expanding the Mailto: tag

Adding Subject Line and Text or Link into Body of Email

         

ruleone01

9:53 am on Oct 25, 2004 (gmt 0)

10+ Year Member



I came upon webmasterworld.com and this subject in a web search. The web search pointed me to a mailto tag which was incorrect, in that it put semi-colons between the mailtag actions, instead of the & sign. See below, that the & is correct. The semicolon did not work in my outlook.

<a href="mailto:name<emailid@domain.com>?subject=Complaint Form&body=Please describe your complaint here.">Complaint Form</a>

me

monkeythumpa

6:20 pm on Oct 25, 2004 (gmt 0)

10+ Year Member



Try changing the "mailto:name<emailid@domain.com>" to "mailto:emailid@domain.com" and it should work. I am guessing that the carats are confusing the email client or browser.

photon

8:54 pm on Oct 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What monkeythumpa said.

And, welcome to WebmasterWorld!

choster

9:30 pm on Oct 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A browser sets aside the characters < and > for denoting HTML tags, so it will be confused if you try to place them inside an HTML tag. You may be able to retain them if you escape the characters, for instance:

<a href="mailto:name&lt;emailid@domain.com&gt;?subject=Complaint Form&body=Please describe your complaint here.">Complaint Form</a>

<a href="mailto:name%3Cemailid@domain.com%3E?subject=Complaint Form&body=Please describe your complaint here.">Complaint Form</a>

It will all depend on the client, however.

ruleone01

12:41 am on Oct 26, 2004 (gmt 0)

10+ Year Member



Works fine now.

Thanks