From 03ca022596869eaefcbf382ca28823c1935df1a2 Mon Sep 17 00:00:00 2001 From: Rostislav Wolny Date: Mon, 22 Oct 2018 10:08:35 +0200 Subject: [PATCH] Fix bulk re-sending confirmation emails for subscribers [MAILPOET-1598] --- lib/Models/Subscriber.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Models/Subscriber.php b/lib/Models/Subscriber.php index 1169d32d68..f6f0cc5c28 100644 --- a/lib/Models/Subscriber.php +++ b/lib/Models/Subscriber.php @@ -629,8 +629,9 @@ class Subscriber extends Model { $emails_sent = 0; if(!empty($subscribers)) { + $sender = new ConfirmationEmailMailer(); foreach($subscribers as $subscriber) { - if($subscriber->sendConfirmationEmail()) { + if($sender->sendConfirmationEmail($subscriber)) { $emails_sent++; } }