php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #21978 bbc: send twice
Submitted: 2003-01-31 05:32 UTC Modified: 2003-02-02 22:35 UTC
From: renato at ostorero dot it Assigned: pollita (profile)
Status: Closed Package: *Mail Related
PHP Version: 4CVS-2003-01-31 (stable) OS: Windows 2000 Server
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: renato at ostorero dot it
New email:
PHP Version: OS:

 

 [2003-01-31 05:32 UTC] renato at ostorero dot it
I have got the same problem repoted here #21036 I'm using the last CVS of 31-01-03 but still have problem.

When I use bbc field, php send mail twice to the recipient, this don't happen in to: and cc: recipent field.

Here the debug of my mail server :

01/31/03 12:16:46 ID 1732 - HELO WWWSWZ\0D\0A
01/31/03 12:16:46 ID 1732 - WWWSWZ ( IP: 127.0.0.1 ) has connected to the mail server
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - MAIL FROM:<info@swzone.it>\0D\0A
01/31/03 12:16:46 ID 1732 - info@swzone.it is sending a message to the mail server
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - RCPT TO:<newsletter@swzone.it>\0D\0A
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - RCPT TO:< rostorcasa@rostor.net>\0D\0A
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - RCPT TO:< rostorcasa@rostor.net>\0D\0A
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - DATA\0D\0A
01/31/03 12:16:46 ID 1732 - 354 Start mail input; end with <CRLF>.<CRLF>\0D\0A
01/31/03 12:16:46 ID 1732 - Date: Fri, 31 Jan 2003 12:16:46 +0100\0D\0A
01/31/03 12:16:46 ID 1732 - From: info@swzone.it\0D\0A
01/31/03 12:16:46 ID 1732 - Subject: La Newsletter di Software Zone Italia\0D\0A
01/31/03 12:16:46 ID 1732 - To: newsletter@swzone.it\0D\0A
01/31/03 12:16:46 ID 1732 - MIME-Version: 1.0Content-type: text/html; charset\3Diso-8859-1\0D\0A
01/31/03 12:16:46 ID 1732 - \0D\0A
01/31/03 12:16:46 ID 1732 - ciao\0D\0A
01/31/03 12:16:46 ID 1732 - .\0D\0A
01/31/03 12:16:46 ID 1732 - 250 Requested mail action okay, completed\0D\0A
01/31/03 12:16:46 ID 1732 - QUIT\0D\0A
01/31/03 12:16:46 ID 1732 - 221 <swzone.it> Service closing transmission channel\0D\0A
01/31/03 12:16:46 ID 1732 - WWWSWZ has finished delivering messages to the mail server

A message to the address bcc: rostorcasa@rostor.net has been sent twice.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-31 17:50 UTC] iliaa@php.net
What are the arguments that you are passing to the mail() function?
 [2003-02-01 01:14 UTC] renato at ostorero dot it
These are the arguments I pass to mail() function :

$headers = "MIME-Version: 1.0";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: SWZone Newsletter <swz@swz.it>\r\n";
$headers .= "Bcc: rostorcasa@rostor.net,\r\n";
$headers .= "Reply-To: SWZone Newsletter <swz@swz.it>\r\n";
$headers .= "X-Priority: 3\r\n";
$headers .= "X-MSMail-Priority: Normal\r\n";
$headers .= "X-Mailer: SWZ Mail Server\r\n";

$to = "newsletter@swzone.it";
$message="ciao";

mail($to, $subject, "$message", $headers);
 [2003-02-01 15:59 UTC] pollita@php.net
Hrmm, well this definately seems related to #21036, but with the data you're sending in headers it seems like there's some key element missing...

Can I ask you to try again without the coma at the end of the bcc address?  This could be causing a problem with the bcc tokenization.
 [2003-02-01 16:07 UTC] renato at ostorero dot it
Hi Pollita,

test done, with or without the coma the result is always the same, double mail sent to Bcc recipient.
 [2003-02-01 19:18 UTC] pollita@php.net
I just noticed you're using a stable snapshot and that my fix for #21036 was only done against the dev branch.  

Before I commit the fix to the stable branch, can I just have you try downloading a dev snapshot from http://snaps.php.net (use: Win32 Package - Latest CVS 5.0.x-dev) and see if that one behaves as expected?
 [2003-02-02 22:35 UTC] pollita@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Since I've just applied the patch to the stable branch which fixes this bug I'm going to assume for the moment that it'll solve your problem.  If you try a snapshot (built *after* the patch was applied) and it still occurs, reopen the bug and we can dig deeper.

You'll need to grab a win32 STABLE snapshot built AFTER Feb 3, 2003 1:30am GMT, or any of the DEV snapshots shown on snaps.php.net .
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 20:01:27 2024 UTC