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:
Pavel Dohnal
2018-10-11 12:06:49 +02:00
parent 4249c7a2cb
commit 70debcc828
7 changed files with 172 additions and 114 deletions

View File

@@ -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());
}
}