#10182 [Com]: mail() $to parameter doesn't accept rfc822 style addresses

From: Date: Wed, 07 Aug 2002 06:52:37 +0000
Subject: #10182 [Com]: mail() $to parameter doesn't accept rfc822 style addresses
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16114@lists.php.net to get a copy of this message
ID: 10182 Comment by: mbretter@jawa.at Reported By: apere@agilitime.com Status: Open Bug Type: Mail related Operating System: Any Windows PHP Version: CVS New Comment: the problem is, that the mail command itself adds < and > at the beginning and at the end of to-e-mail adress. if you have $to = '<mbretter@jawa.at>'; then implicit you have <<mbretter@inode.at>> and some mailservers don't like this. Previous Comments: ------------------------------------------------------------------------ [2002-07-12 06:01:26] mfischer@php.net thx :) to david: if you need that kind of feature maybe you should use the existing mail classes which support (e)smtp (there's one on pear.php.net and one on phpclasses.upperdesign.com ) ------------------------------------------------------------------------ [2002-07-12 05:44:38] hholzgra@php.net for now it will stay windows only at least as long as we are not perfectily sure that the new code realy works there is no use in replacing a working solution with stuff still marked as experimental (although mfisher did a lot of good work on it lately that improved the situation on windows quite a bit :) ------------------------------------------------------------------------ [2002-07-12 05:37:52] david@acz.org Why does it have to be Windows only? I would *really* like to see integrated SMTP support in PHP on UNIX platforms. Keeping it Windows only seems silly. Yes, I know it's easy to code SMTP stuff in PHP, but as long as the code is there... ------------------------------------------------------------------------ [2002-06-02 11:15:39] mfischer@php.net Updated summary, Version, Status, OS ------------------------------------------------------------------------ [2001-06-22 18:47:06] hholzgra@php.net windows mail code *badly* needs a rewirte ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/10182 -- Edit this bug report at http://bugs.php.net/?id=10182&edit=1

« previous php.bugs (#16114) next »