note 59773 added to ref.mail

From: Date: Thu, 15 Dec 2005 13:34:09 +0000
Subject: note 59773 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-100192@lists.php.net to get a copy of this message
Note that there is a big difference between the behavior of this function on Windows systems vs. UNIX systems. On Windows it delivers directly to an SMTP server, while on a UNIX system it uses a local command to hand off to the system's own MTA. The upshot of all this is that on a Windows system your message and headers must use the standard line endings \r\n as prescribed by the email specs. On a UNIX system the MTA's "sendmail" interface assumes that recieved data will use UNIX line endings and will turn any \n to \r\n, so you must supply only \n to mail() on a UNIX system to avoid the MTA hypercorrecting to \r\r\n. If you use plain old \n on a Windows system, some MTAs will get a little upset. qmail in particular will refuse outright to accept any message that has a lonely \n without an accompanying \r. ---- Manual Page -- http://www.php.net/manual/en/ref.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+59773 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+59773&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+59773&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#100192) next »