Use "&" in html for a mailto hyperlink

G

Guest

I have a "provide feedback" button on a website I've created that allows
visitors to e-mail their comments/suggestions to the company providing the
website. They recently changed the name of their mailbox to include an
ampersand in it.

Please tell me (in html code in the mailto property) how I can use an e-mail
address similar to the one below that contains the ampersand symbol (&) in
the mailbox address:

Name of outlook mailbox: ABC&D Organization effectiveness site

E-mail address in outlook: ABC&[email protected]
 
P

p c

Are sure that's the address? Valid Internet email addresses include only
alphanumeric characters in the format someone@somedomain.

Use the Internet address--not the Outlook address book eentry or display
name. To look it up, right click the entry in outlook
-->Properties-->Email address (?). I you various entries, the Internet
style address usually has smtp: in front of it.

...PC
 
G

Guest

Thanks for the quick reply!
I did double-check as you indicated below, and after the SMTP it DOES have
the "&" in the e-mail address. I've requested that my client call me because
I was going to request that they take the "&" out of the address. I sent
this post to the MS Communities in case there is a work-around within HTML
and in case they are stubborn and want to keep it there! Please let me know
if there's a way to keep them happy with their "&" or not!!!
 
G

Guest

Thanks for the info Kathleen...it was just what I needed!!
I was able to read the article and a related one to figure out that I needed
to use the "%" and the two-digit octet value for the "&" sign which is "26."
For anyone else who may run into the same problem, here's what the final
mailto link looks like:

href="mailto:ABC%[email protected]?subject=Feedback on Site"
 
A

Andrew Murray

do you mean something like
(e-mail address removed)&subject=this is the subject&this is the message

? which appends a message subject and brief line to the subject and body
fields in your email client, when you click the link.
 
M

Murray

No. They meant something like -

Me&[email protected], I think.

--
Murray
============

Andrew Murray said:
do you mean something like
(e-mail address removed)&subject=this is the subject&this is the message

? which appends a message subject and brief line to the subject and body
fields in your email client, when you click the link.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top