Move mailer configuration to init method
[MAILPOET-2146]
This commit is contained in:
@ -36,7 +36,8 @@ class SendingQueue extends APIEndpoint {
|
||||
|
||||
// check that the sending method has been configured properly
|
||||
try {
|
||||
new \MailPoet\Mailer\Mailer(false);
|
||||
$mailer = new \MailPoet\Mailer\Mailer();
|
||||
$mailer->init();
|
||||
} catch (\Exception $e) {
|
||||
return $this->errorResponse([
|
||||
$e->getCode() => $e->getMessage(),
|
||||
|
Reference in New Issue
Block a user