Move logic for return path fallback address from method classes to factory
[MAILPOET-4115]
This commit is contained in:
committed by
Veljko V
parent
b8bfa60634
commit
36edab34e6
@@ -55,9 +55,7 @@ class SMTP implements MailerMethod {
|
||||
$this->encryption = $encryption;
|
||||
$this->sender = $sender;
|
||||
$this->replyTo = $replyTo;
|
||||
$this->returnPath = ($returnPath) ?
|
||||
$returnPath :
|
||||
$this->sender['from_email'];
|
||||
$this->returnPath = $returnPath;
|
||||
$this->mailer = $this->buildMailer();
|
||||
$this->mailerLogger = new Swift_Plugins_Loggers_ArrayLogger();
|
||||
$this->mailer->registerPlugin(new Swift_Plugins_LoggerPlugin($this->mailerLogger));
|
||||
|
Reference in New Issue
Block a user