FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » php mail( )
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: php mail( ) [message #171287 is a reply to message #171222] Thu, 30 December 2010 01:37 Go to previous messageGo to previous message
Kim Andr Aker is currently offline  Kim Andr Aker
Messages: 17
Registered: September 2010
Karma:
Junior Member
På Wed, 29 Dec 2010 18:12:37 +0100, skrev Bill Braun <me(at)privacy(dot)net>:

> This code appears in a mail( ) script that sends me notice of errors.
>
> $message .= "User Email: $erruseremail"."?Subject=Blah Blah
> Blah"."\r\n\n";
>
> When the email arrives it looks like this:
>
> User Email: me(at)example(dot)com?Subject=Blah Blah Blah but with the
> underlying mailto link of only me(at)example(dot)com?Subject=Blah (just a part
> of the Subject string).
>
> If I change the code to $message .= "User Email:
> $erruseremail"."?Subject=BlahBlahBlah"."\r\n\n"; (remove all spaces in
> the subject string) the email arrives as expected, with the mailto link
> including the entire subject string.
>
> I have tried every combination of the use of double and single quotes I
> can think of with no joy. Where am I missing the boat?

If you're expecting your e-mail client to convert the whole thing to a
mailto-link, I suggest encoding the subject text with urlencode().
http://php.net/urlencode

--
Kim André Akerø
- kimandre(at)NOSPAMbetadome(dot)com
(remove NOSPAM to contact me directly)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open Session Variables
Next Topic: Value in a grid
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Sep 20 14:40:25 GMT 2024

Total time taken to generate the page: 0.04931 seconds