#36757 [Opn->Bgs]: Beheaviour of to in mail function different under windows than linux

From: Date: Thu, 16 Mar 2006 09:33:36 +0000
Subject: #36757 [Opn->Bgs]: Beheaviour of to in mail function different under windows than linux
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94415@lists.php.net to get a copy of this message
ID: 36757 Updated by: derick@php.net Reported By: pdejaeger at igepa dot be -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Windows XP PHP Version: 5.1.2 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. . Previous Comments: ------------------------------------------------------------------------ [2006-03-16 10:30:23] pdejaeger at igepa dot be Description: ------------ I want to use the RFC 2822 standard in the to address User <user@example.com> But under windows this gives an error, under linux it works fine. It seems to add it's own < and > characters under windows. Reproduce code: --------------- When I try this under windows : mail("User <user@example.com>",$subject, "", $headers); I get this error : Warning: mail() [function.mail]: SMTP server response: 501 Syntax error, parameters in command "RCPT TO:<User <user@example.com>>" unrecognized or missing in It seems to add it's own <> characters !!?? If I run the same script under Linux it works fine !? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36757&edit=1

« previous php.bugs (#94415) next »