1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fixes for returning mail providers

This commit is contained in:
David Bomba 2023-06-30 14:34:24 +10:00
parent d53c36d3ef
commit 53a930f6c4
2 changed files with 8 additions and 5 deletions

View File

@ -243,19 +243,19 @@ class NinjaMailerJob implements ShouldQueue
case 'gmail':
$this->mailer = 'gmail';
$this->setGmailMailer();
return;
return $this;
case 'office365':
$this->mailer = 'office365';
$this->setOfficeMailer();
return;
return $this;
case 'client_postmark':
$this->mailer = 'postmark';
$this->setPostmarkMailer();
return;
return $this;
case 'client_mailgun':
$this->mailer = 'mailgun';
$this->setMailgunMailer();
return;
return $this;
default:
break;
@ -264,6 +264,8 @@ class NinjaMailerJob implements ShouldQueue
if (Ninja::isSelfHost()) {
$this->setSelfHostMultiMailer();
}
return $this;
}
/**

View File

@ -445,7 +445,8 @@ class Email implements ShouldQueue
return $this;
default:
break;
$this->mailer = config('mail.default');
return $this;
}
if (Ninja::isSelfHost()) {