Send confirmation email when there are unconfirmed data

[MAILPOET-3649]
This commit is contained in:
Jan Lysý
2021-06-24 17:42:50 +02:00
committed by Veljko V
parent 6773c42131
commit 9b51f4e70e
2 changed files with 4 additions and 4 deletions

View File

@ -177,8 +177,8 @@ class Pages {
);
}
// Send new subscriber notification only when status changes to subscribed to avoid spamming
if ($originalStatus !== Subscriber::STATUS_SUBSCRIBED) {
// Send new subscriber notification only when status changes to subscribed or there are unconfirmed data to avoid spamming
if ($originalStatus !== Subscriber::STATUS_SUBSCRIBED || $subscriberData !== null) {
$this->newSubscriberNotificationSender->send($this->subscriber, $subscriberSegments);
}