Add basic interface for MailerMethod
[MAILPOET-4115]
This commit is contained in:
committed by
Veljko V
parent
eb07872d13
commit
b10c30a7b1
@@ -12,7 +12,7 @@ use MailPoetVendor\Swift_Plugins_LoggerPlugin;
|
||||
use MailPoetVendor\Swift_Plugins_Loggers_ArrayLogger;
|
||||
use MailPoetVendor\Swift_SmtpTransport;
|
||||
|
||||
class SMTP {
|
||||
class SMTP implements MailerMethod {
|
||||
public $host;
|
||||
public $port;
|
||||
public $authentication;
|
||||
@@ -65,7 +65,7 @@ class SMTP {
|
||||
$this->blacklist = new BlacklistCheck();
|
||||
}
|
||||
|
||||
public function send($newsletter, $subscriber, $extraParams = []) {
|
||||
public function send($newsletter, $subscriber, $extraParams = []): array {
|
||||
if ($this->blacklist->isBlacklisted($subscriber)) {
|
||||
$error = $this->errorMapper->getBlacklistError($subscriber);
|
||||
return Mailer::formatMailerErrorResult($error);
|
||||
|
Reference in New Issue
Block a user