|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-13 16:16 UTC] WPinegar at healthtech dot net
I just downloaded the latest Win32 build of PHP 4.3.0-dev from http://snaps.php.net/win32 and noticed that the following code segment does not work correctly: mail("testuser@mydomain.com", "Test E-Mail", $PHP_AUTH_USER." has send a test e-mail message.", "From: webmaster@mydomain.com\nReply-To: $replyto\nX-Mailer: PHP/".phpversion()); In the current development version of PHP 4.3.0-dev the e-mail is sent but there is no body. When I revise my code and omit the headers from the 4th parameter, everything works fine and the body of the e-mail message is sent correctly. mail("testuser@mydomain.com", "Test E-Mail", $PHP_AUTH_USER." has send a test e-mail message."); Please correct this problem. Thanks! PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 14 15:00:01 2025 UTC |
The code with "\n" worked perfectly in PHP 4.3.0-dev dated 5/18/2002 and PHP 4.2.0. The following code also exhibits the same problem in today's CVS build of PHP 4.3.0-dev: mail("testuser@mydomain.com", "Test E-Mail", $PHP_AUTH_USER." has sent a test e-mail message.", "From: webmaster@mydomain.com"); Notice that there are no \n or \r\n in this code since there is only one header being passed. With this code the body is not transmitted. Omitting the header again corrects the problem. This is definately a new problem in the CVS build...