php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8050 Sending malformed body (message string)
Submitted: 2000-11-30 09:09 UTC Modified: 2001-01-12 13:46 UTC
From: webmaster at domainsbuy dot com Assigned:
Status: Closed Package: Mail related
PHP Version: 4.0.3pl1 OS: Windows NT4 + SP6a
Private report: No CVE-ID: None
 [2000-11-30 09:09 UTC] webmaster at domainsbuy dot com
When using the mail() function, anything put into the body becomes malformed. Example:

mail("test@whatever.com","test","testing\n1...\n2...\n3...");

...results in the following email body...

testingatever.com
1...@whatever.com
2...@whatever.com
3...@whatever.com

The server it's sending to is an XMail server, but I don't think it's that. And frankly, I have no idea what's causing it...I get the same results on two different servers

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-30 09:11 UTC] webmaster at domainsbuy dot com
Should have mentioned I'm using the ISAPI .dll version of PHP as opposed to the .exe version, on an IIS4 web server.
 [2001-01-12 13:46 UTC] cynic@php.net
according to RFC... err, can't recall... you have to use CRLF (\r\n in PHP) to delimit lines in mail messages.

if that doesn't help, please reopen this bug report.
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Aug 04 10:01:23 2021 UTC