Skip to main content
July 12, 2007
Question

Using mailto: and inserting ? into body

  • July 12, 2007
  • 1 reply
  • 268 views
Is anyone familiar with a way to insert a question mark into the body of an email via a getURL("mailto:?subject&body=") call?

I ask this because I am trying to insert a specific URL

i.e. http://sostv.com/fwd/vintage.swf?vid=vintage_01

and the email client disregards the question mark and truncates the URL to everything preceding it.

I've tried replacing the question mark in my &body: call to be the ascii equivalent of ? but that doesn't work either.

Does anyone know how I can solve this problem?


Here is a sample of the code I'm using:

emailWeb01.onRelease = function(){
//getURL("mailto:" + "?subject=SOS Vintage Work" + "&body=http://sostv.com/fwd/vintage.swf?vid=vintage_01");

getURL("mailto:" + "?subject=SOS Vintage Work" + "&body=" + web01.web01text.text);
}


The line that I commented out is the hardcoded value I am retrieving from my dynamic text box in the line below.

Any help would be greatly appreciated.
This topic has been closed for replies.

1 reply

Inspiring
July 12, 2007
Using escape() seems to work
(MS Outlook as mail client).
July 13, 2007
Excellent!

Thank you so much for your assistance, it works and I'll definitely be keeping this in mind!