Move mailer configuration to init method
[MAILPOET-2146]
This commit is contained in:
@ -32,7 +32,8 @@ class Mailer {
|
||||
if (!$reply_to['address']) {
|
||||
$reply_to = false;
|
||||
}
|
||||
$this->mailer = new MailerFactory($method = false, $sender, $reply_to);
|
||||
$this->mailer = new MailerFactory();
|
||||
$this->mailer->init($method = false, $sender, $reply_to);
|
||||
return $this->mailer;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user