Skip to content
Permalink
Browse files
Bugfix: Overlapping bulkmails may be sent to wrong recipients
When several bulkmails are sent at once within one mail queue batch, some participants may receive the email text of another bulk mail. Bugfix now uses the correct index to load email text.
  • Loading branch information
bgreiner committed Mar 13, 2016
1 parent a056ecd commit 0b8a2225774a819aa4e9a119e5d7a99a18b7f6f9
Showing 1 changed file with 1 addition and 1 deletion.
@@ -488,7 +488,7 @@ function experimentmail__send_mails_from_queue($number=0,$type="",$experiment_id
// bulks
foreach ($bulks as $mail) {
$tlang=$parts[$mail['mail_recipient']]['language'];
$done=experimentmail__send_bulk_mail($mail,$parts[$mail['mail_recipient']],$bulk_mails[$tbulk][$tlang],$footers[$tlang]);
$done=experimentmail__send_bulk_mail($mail,$parts[$mail['mail_recipient']],$bulk_mails[$mail['bulk_id']][$tlang],$footers[$tlang]);
if ($done) {
$mails_sent++;
$deleted=experimentmail__delete_from_queue($mail['mail_id']);

0 comments on commit 0b8a222

Please sign in to comment.