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

Home » Imported messages » comp.lang.php » PHP Mailto();
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PHP Mailto(); [message #182052 is a reply to message #182051] Mon, 01 July 2013 13:09 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 01/07/13 13:47, J.O. Aho wrote:
> On Mon, 1 Jul 2013, The Natural Philosopher wrote:
>> On 01/07/13 12:50, bill wrote:
>>> On 6/30/2013 7:29 PM, Twayne wrote:
>>>> > I've tried the Headers method, simply adding them inlilne. No
>>> Good.
>>>> I've also tried "and"ing things together like " $comments .
>>>> $respond " for instance, but then they all run together and it's
>>>> difficult to spot the additional information since there are no
>>>> line breaks.
>>>
>>> I do believe that you use \n for a new line in the body of the email.
>>>
>> correct. In full spec you should use "\r\n" for headers, but the mail
>> program in PHP seems to accept \n better.
>
> If I remember this correct, it's different in ms-windows and
> Linux/Unix with the "best" option in the header \n or \r\n, think the
> later is needed in ms-windows. There was some issues PHP 5.2 -> PHP
> 5.3 where using \r\n on Linux/Unix broke and people started to change
> to just use \n.
> To make it more portable, you could use PHP_EOL instead, then it
> should work fine in which ever environment without need of code change.
>
>
That is a thought. I'd forgotten PHP_EOL


>
>> In the body you can use '\n' without issues.
>
> Usually \n works in body like a charm, but I think some old clients
> may get some display issues if you use an ms-dos charset in the mail
> header for the mail, but I think that is quite rare and shouldn't need
> to be tought of.
>


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to lead are elected by the least capable of producing, and where the members of society least likely to sustain themselves or succeed, are rewarded with goods and services paid for by the confiscated wealth of a diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DIY finger tip typin - pace and code, (PHP open source)
Next Topic: tracking IP's
Goto Forum:
  

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

Current Time: Thu Feb 06 18:53:12 GMT 2025

Total time taken to generate the page: 0.05222 seconds