Jump to content

how to get a '?' in the body of a mailto: statement?


satre

Recommended Posts

Here's a toughy. Can't seem to find it. I'm trying to simply put a question mark at the end of a question I have in the body of an email generated from a mailto: link. Here's the code:

$bodyheader = "Dear $coordinator, could you please forward to Mr. $director? Thanks!%0d
------------------------------------------------------------%0d
%0d";
echo "<a href='mailto:$addressee&from=$myemail&subject=subject%20is%20$subject&body=
$bodyheader
Dear Mr. $director,%0d
%0d

 

So, works great except when there is a question mark (as above) in $bodyheader, it won't echo anything past that. If I put in a period (.) all is AOK. I had to use the "%0d" to make a carriage return, anybody know what to put in for a question mark? I already tried the html escape "&#63;" and that does not work.

 

Thanks for your help!

-Satre

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.