Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mailto link

Status
Not open for further replies.

rewebb

Technical User
Dec 12, 2001
143
GB
I'm trying to send an e-mail using a mailto hyperlink where I also set the subject and body. I want to send a URL in the body of the e-mail like so...

subject: Intranet link
Body: Click on this link
I'm having problems with the '?' character in the body of the e-mail. If I try...

mailto:fred@company.com?subject=Intranet%20link&Click%20on%20this%20link%20
then all I get in the body is...

"Click on this link
I have tried URL encoding the second '?' (and even tried using an HTML entity as well) but to no effect.

How do I put a '?' in the body (or subject) of an e-mail??

The browsers are IE5 or IE5.5 and the e-mail clients are Outlook 97 and Outlook 98.

Thanks in anticipation.
 
There's no reason why this should not work:
Code:
<a href=&quot;mailto:youremailhere@email.com?Subject=Loved the site!&body=Thank-you for visiting&quot;>Email me</a>
I have not failed; I merely found 100,000 different ways of not succeding...
 
GUJUm0deL said...

>There's no reason why this should not work:
>
> <a href=&quot;mailto:youremailhere@email.com?Subject=
>Loved the site!&body=Thank-you for visiting&quot;>Email me</a>

I agree, but that's not what I'm trying to do.

I asked &quot;How do I put a '?' in the body (or subject) of an e-mail??&quot; You've put a '!' in the subject. How would you put a '?' in?

 
rewebb, try: /?
Since the '?' is a restricted key, try putting a backslash and then the questiomark... I have not failed; I merely found 100,000 different ways of not succeding...
 
I had already tried to escape the '?' char - but that didn't work.

However I think I've found the answer. It seems to be a bug with IE5.0

I've tried it with IE5.5 and it works OK, but it fails with IE5.0 (and with SP1 and SP2 applied)

As we have approx 6,000 staff with IE5 it's a bit of a b*gger :-(

Thanks anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top