Mailto link using the &

admin

Administrator
Staff member
Having a little problem with mailto: and a generic E-Mail address using the & symbol.<br />
<br />
The code:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"mailto:bob&[email protected]"><br />
<br />
doesn't work - nor does<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"mailto:bob&[email protected]"><br />
<br />
Is there a way round this ?<br />
<br />
Thanks.<br />
<br />
The Chancer.<br />
--------------<br />
Occasionally I might be right.<!--content-->Do you actually have an email address with an ampersand in it or are you trying to CC a second address? :p<br />
If the latter it is:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"mailto:[email protected][email protected]"><br />
<br />
Never trust a mailto to work though. Especially not fancy fancy features.<!--content-->The E-Mail address does have an ampersand (&) included in it.<br />
<br />
I have a feeling it is not possible to do this with a mailto link.. and a formmail or cgi script is out of the question. :-(<!--content-->:eek: I didn't know & was a legit character in an email address.<br />
<br />
My email client (Eudora) accepts the mailto in the form you have it but I would at least escape it with &amp;. See if that helps.<br />
<br />
---<br />
Sorry! Forgot that vBull parses entities. :o<!--content-->You have two escaping options, &amp; and %26.<!--content-->I have tried different ways for it, but no joy with Outlook... and it needs to be cross platform...<br />
<br />
Looks like I'll have to get the E-Mail addresses changed..<br />
<br />
Thanks anyway<br />
<br />
The attached file shows the fill details of the mailto link..<!--content-->Charles,<br />
<br />
Many Thanks<br />
<br />
%26 works like a dream...<br />
<br />
:D<!--content-->Great! Good to know. :)<!--content-->
 
Back
Top