Refactor confirmation email sending
Aspect mock stopped working for me so I had to create a separate service for sending confirmation emails. [MAILPOET-1522]
This commit is contained in:
@@ -33,7 +33,7 @@ class SendNewSubscriberNotification {
|
||||
if($mailer) {
|
||||
$this->mailer = $mailer;
|
||||
} else {
|
||||
$this->mailer = new \MailPoet\Mailer\Mailer();
|
||||
$this->mailer = new \MailPoet\Mailer\Mailer(false, $this->constructSenderEmail());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user