Bug #17541 Updated: If specifying a "To:" line in extras it dupliates the addresses

From: Date: Mon, 03 Jun 2002 09:08:13 +0000
Subject: Bug #17541 Updated: 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-9280@lists.php.net to get a copy of this message
ID: 17541 Updated by: mfischer@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: 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. Previous Comments: ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ [2002-05-31 05:13:17] liz@xcalibur.demon.co.uk For the last year Ive been writing a system which heavily relies on Emails. To help people use the system, when it Emails them, it will attach a name to their actual name. EG: Liz Kimber - Authoriser, or Liz Kimber - Requester. To do that, I use the following code mail ($toaddr,"Subject","data","From: Purchasing System\nTo: $name - $action <$toaddr>"); Mails used to then arrive as From: Purchasing System To: Liz Kimber - Authoriser Now, they arrive From: Purchasing System To: Liz Kimber; Liz Kimber - Authoriser This code worked marvelously till version 4.2.x :(( this system is due to go live very shortly. Im trying to win my company over to PHP and I dont want it to look naff as it does. I will have to revert to 4.1.x, but, it would be appreciated if we can get this fixed, or at least if Im being numb, and someone can make this work.. please.. (Mail server is exchange 2000, although I dont think this is relevant) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17541&edit=1

« previous php.bugs (#9280) next »