mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
fixes
This commit is contained in:
parent
e443fb28ec
commit
522fbea475
@ -336,6 +336,10 @@ class NinjaMailerJob implements ShouldQueue
|
|||||||
$this->mailer = 'mailgun';
|
$this->mailer = 'mailgun';
|
||||||
$this->setMailgunMailer();
|
$this->setMailgunMailer();
|
||||||
return $this;
|
return $this;
|
||||||
|
case 'client_brevo':
|
||||||
|
$this->mailer = 'brevo';
|
||||||
|
$this->setBrevoMailer();
|
||||||
|
return $this;
|
||||||
case 'smtp':
|
case 'smtp':
|
||||||
$this->mailer = 'smtp';
|
$this->mailer = 'smtp';
|
||||||
$this->configureSmtpMailer();
|
$this->configureSmtpMailer();
|
||||||
|
@ -130,18 +130,20 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
// Mailer::macro('brevo_config', function (string $key) {
|
Mailer::macro('brevo_config', function (string $brevo_key) {
|
||||||
// // @phpstan-ignore /** @phpstan-ignore-next-line **/
|
// @phpstan-ignore /** @phpstan-ignore-next-line **/
|
||||||
// Mail::setSymfonyTransport((new BrevoTransportFactory)->create(
|
Mailer::setSymfonyTransport(
|
||||||
// new Dsn(
|
(new BrevoTransportFactory)->create(
|
||||||
// 'brevo+api',
|
new Dsn(
|
||||||
// 'default',
|
'brevo+api',
|
||||||
// $key
|
'default',
|
||||||
// )
|
$brevo_key
|
||||||
// ));
|
)
|
||||||
|
)
|
||||||
|
);
|
||||||
|
|
||||||
// return $this;
|
return $this;
|
||||||
// });
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -564,6 +564,10 @@ class Email implements ShouldQueue
|
|||||||
$this->mailer = 'mailgun';
|
$this->mailer = 'mailgun';
|
||||||
$this->setMailgunMailer();
|
$this->setMailgunMailer();
|
||||||
return $this;
|
return $this;
|
||||||
|
case 'client_brevo':
|
||||||
|
$this->mailer = 'brevo';
|
||||||
|
$this->setBrevoMailer();
|
||||||
|
return $this;
|
||||||
case 'smtp':
|
case 'smtp':
|
||||||
$this->mailer = 'smtp';
|
$this->mailer = 'smtp';
|
||||||
$this->configureSmtpMailer();
|
$this->configureSmtpMailer();
|
||||||
|
430
composer.lock
generated
430
composer.lock
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user