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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: webmaster at domainsbuy dot com
New email:
PHP Version: OS:

 

 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 18:01:34 2024 UTC