note 10678 added to mail
| From: | isabelle at chaska dot com | Date: | Tue, 16 Jan 2001 22:33:26 +0000 |
| Subject: | note 10678 added to mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9860@lists.php.net to get a copy of this message | ||
I've implemented a web page that allows users to send e-mail messages with attached files to
themselves or other addresses. Most of my users are MS Windows users, and so have told me they
would prefer their attached text files to be in the Windows/DOS format where each line is terminated
with CR/LF pairs. This is unlike the Unix standard where each line is terminated with only LF.
There seems to be a design flaw in the mail() command because it is stripping the CR characters out
of my mail messages. This is very unfortunate. It took me an hour or so to figure out that it was
PHP at fault, not my code.
I will now have to go write my own mail() function which will behave correctly. I hope this problem
does not catch you by surprise, as well.
http://www.php.net/manual/en/function.mail.php