I am getting the same email twice
I moved the code that you suggested because the order id was not being added to my email. The only problem I have is that I am receiving the same email twice. They both contain the users and cart info. The only difference is that one adds the order id and the other does not.
Plus also noticed that your code has the following:
if ($LoopCount % $BurstSize == 0 {
and my is a little bit longer
if ($LoopCount % $BurstSize == 0 && $CurIndex < sizeof($RecipArray[$RecipIndex])) {
At home I get the same --> if ($LoopCount % $BurstSize == 0 { when I used my mac with cs 5. At work with my dell and cs4 I get the longer version.
The code that I generate with my mac makes the confirm to reload until I get a 500 error server. Are both code suppose to do the same function?