#32411 [NEW]: Email being sent twice

From: Date: Tue, 22 Mar 2005 16:19:21 +0000
Subject: #32411 [NEW]: Email being sent twice
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-76717@lists.php.net to get a copy of this message
From:             mfaryad at maydaygroup dot com
Operating system: Apache 1.3.27 Mode-SSL
PHP version:      4.3.9
PHP Bug Type:     *Mail Related
Bug description:  Email being sent twice

Description:
------------
Hi, 

Strangely in some cases the email is being sent twice to recipient, but
not always only sometimes.

Reproduce code:
---------------
$emailPrt = "mfaryad@maydaygroup.com";
	$subject = "Booking Confirmation Ref. - CN$bookingref";
	$header="From: bookings@travelextras.com";

	$bk = "BOOKING HAS BEEN
MADE\n------------------------------------\nBooking ref is:
CN$cn\n------------------------------------\n";
	$cusomerName="Customer Name:- ".$leadpassenger;
	$customerEmail="Customer Email:- ".$email;
	$customerTag="Customer Tag / adv_code :- ".$advCode;
	$apRow2 = "Airport parking at $apLocation\nStart Date: $apStartDate\nEnd
Date: $apEndDate\n";
	$productDetails =
$bk.$cusomerName."\n".$customerEmail."\n".$customerTag."\n".$clientTotal."\n"."Product
Details:". $htlRow." ".$crRow." ".$apRow2." ".$tiRow."
".$supp."  ";
	
	if($emailPrt)
	{
		mail($emailPrt,$subject,$productDetails,$header);
	}

Expected result:
----------------
I should get an email at mfaryad@maydaygroup.com as below

BOOKING HAS BEEN MADE
------------------------------------
Booking ref is: CN970546
------------------------------------
Customer Name:- Wilde/Michael/Mr
Customer Email:- m.wilde@sheffield.ac.uk
Customer Tag / adv_code :- park


Total: £42.00
Product Details:  Airport parking at EMA ECONOMY LONG STAY 7 (ON-SITE)
Start Date: 06.06.05 End Date: 13.06.05
    



Actual result:
--------------
In some cases it sends duplicate email, same email up 2 or 3 times its
strange, hope you guys can help.



-- 
Edit bug report at http://bugs.php.net/?id=32411&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=32411&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=32411&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=32411&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=32411&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=32411&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=32411&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=32411&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=32411&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=32411&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=32411&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=32411&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=32411&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=32411&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=32411&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=32411&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=32411&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=32411&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=32411&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=32411&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=32411&r=mysqlcfg


Thread (2 messages)

« previous php.bugs (#76717) next »