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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Pull Requests

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: Thu Dec 26 11:01:30 2024 UTC