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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.