#17541 [Dup]: If specifying a "To:" line in extras it dupliates the addresses

From: Date: Sat, 24 Aug 2002 02:08:37 +0000
Subject: #17541 [Dup]: If specifying a "To:" line in extras it dupliates the addresses
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-17728@lists.php.net to get a copy of this message
ID: 17541 Updated by: sniper@php.net Reported By: liz@xcalibur.demon.co.uk Status: Duplicate Bug Type: Mail related Operating System: windows 2000/xp PHP Version: 4.2.1 New Comment: I guess this is the report this one is duplicate of: http://bugs.php.net/bug.php?id=18625&edit=1 Previous Comments: ------------------------------------------------------------------------ [2002-06-03 05:08:12] mfischer@php.net Of course it does. Internally, the $toaddr part is taken and put into RCPT TO: <$toaddr> which will expand to RCPT TP: <$name - $action <$toaddr>> in your case which is invalid (though I know qmail still handles it properly, exim may feel, don't remember sendmail). in 4.1.2, If the $header contained a TO, it used in the mail header. This was changed in 4.2.x and I re-introduced it in HEAD (snaps.php.net/win32, not the stable version). However, as Manuel pointed out on php-qa@, you're probably better off using some external code to handle your mail generation of you rely heavily on it. ------------------------------------------------------------------------ [2002-06-03 05:02:33] liz@xcalibur.demon.co.uk Hmm, maybe so, but, if you put the $toaddr as "$name - $action <$toaddr>" it coms back with server error.. so.. thats even worse! ------------------------------------------------------------------------ [2002-06-02 18:21:49] mfischer@php.net Marking as duplicate, the problem is that rfc822 style addresses are not support (in which case you just would use the $to field with the correct address). Damn, can't find the report of the other one. ------------------------------------------------------------------------ [2002-05-31 12:16:25] liz@xcalibur.demon.co.uk Sadly, I cant move them to a non windows one, its bad enough Im not using ASP (they havent noticed that yet). However, I can confirm it worked fine in 4.1.2 as I tested this, but not in 4.2.0 or 4.2.1 Unfortunately for me, I work for a company who feel the need to love microsoft.. (personally, Id have it all running on a unix box, all files, Email, web.. the works.. but, sadly, if microsoft make it, they love it. So, I just dont get the choice. ------------------------------------------------------------------------ [2002-05-31 05:23:24] mfischer@php.net The win32/mail imeplementation suffers many problems. If you need the things working urgent it may be the time to consider moving over to using a non-Win32 system to run your PHP applications. ------------------------------------------------------------------------ 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/17541 -- Edit this bug report at http://bugs.php.net/?id=17541&edit=1

« previous php.bugs (#17728) next »