Click to See Complete Forum and Search --> : Mailto link using the &


The Chancer
01-15-2003, 06:01 AM
Having a little problem with mailto: and a generic E-Mail address using the & symbol.

The code:

<a href="mailto:bob&jim@home.com">

doesn't work - nor does

<a href="mailto:bob&amp;jim@home.com">

Is there a way round this ?

Thanks.

The Chancer.
--------------
Occasionally I might be right.

meow
01-15-2003, 06:14 AM
Do you actually have an email address with an ampersand in it or are you trying to CC a second address? :p
If the latter it is:

<a href="mailto:bob@example.com?cc=jim@example.com">

Never trust a mailto to work though. Especially not fancy fancy features.

The Chancer
01-15-2003, 06:21 AM
The E-Mail address does have an ampersand (&) included in it.

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. :-(

meow
01-15-2003, 06:24 AM
:eek: I didn't know & was a legit character in an email address.

My email client (Eudora) accepts the mailto in the form you have it but I would at least escape it with &amp;amp;. See if that helps.

---
Sorry! Forgot that vBull parses entities. :o

Charles
01-15-2003, 06:28 AM
You have two escaping options, &amp;amp; and %26.

The Chancer
01-15-2003, 06:31 AM
I have tried different ways for it, but no joy with Outlook... and it needs to be cross platform...

Looks like I'll have to get the E-Mail addresses changed..

Thanks anyway

The attached file shows the fill details of the mailto link..

The Chancer
01-15-2003, 06:33 AM
Charles,

Many Thanks

%26 works like a dream...

:D

meow
01-15-2003, 06:38 AM
Great! Good to know. :)