fixes
This commit is contained in:
parent
e443fb28ec
commit
522fbea475
|
|
@ -336,6 +336,10 @@ class NinjaMailerJob implements ShouldQueue
|
|||
$this->mailer = 'mailgun';
|
||||
$this->setMailgunMailer();
|
||||
return $this;
|
||||
case 'client_brevo':
|
||||
$this->mailer = 'brevo';
|
||||
$this->setBrevoMailer();
|
||||
return $this;
|
||||
case 'smtp':
|
||||
$this->mailer = 'smtp';
|
||||
$this->configureSmtpMailer();
|
||||
|
|
|
|||
|
|
@ -130,18 +130,20 @@ class AppServiceProvider extends ServiceProvider
|
|||
)
|
||||
);
|
||||
});
|
||||
// Mailer::macro('brevo_config', function (string $key) {
|
||||
// // @phpstan-ignore /** @phpstan-ignore-next-line **/
|
||||
// Mail::setSymfonyTransport((new BrevoTransportFactory)->create(
|
||||
// new Dsn(
|
||||
// 'brevo+api',
|
||||
// 'default',
|
||||
// $key
|
||||
// )
|
||||
// ));
|
||||
Mailer::macro('brevo_config', function (string $brevo_key) {
|
||||
// @phpstan-ignore /** @phpstan-ignore-next-line **/
|
||||
Mailer::setSymfonyTransport(
|
||||
(new BrevoTransportFactory)->create(
|
||||
new Dsn(
|
||||
'brevo+api',
|
||||
'default',
|
||||
$brevo_key
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
// return $this;
|
||||
// });
|
||||
return $this;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -564,6 +564,10 @@ class Email implements ShouldQueue
|
|||
$this->mailer = 'mailgun';
|
||||
$this->setMailgunMailer();
|
||||
return $this;
|
||||
case 'client_brevo':
|
||||
$this->mailer = 'brevo';
|
||||
$this->setBrevoMailer();
|
||||
return $this;
|
||||
case 'smtp':
|
||||
$this->mailer = 'smtp';
|
||||
$this->configureSmtpMailer();
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue