- Switch to Symfony Mailer from SwiftMailer
- Added CSSLSJ new API config
This commit is contained in:
1 parent
fd95e8db91
commit
94fc8885cf
4 files changed
+20
-4
No files matched your search
@@ -4,12 +4,12 @@ use function DI\autowire, DI\create, DI\get;
|
||||
|
||||
use TheBugs\Email\EmailConfiguration,
|
||||
TheBugs\Email\MailerInterface,
|
||||
TheBugs\Email\SwiftMailer;
|
||||
TheBugs\Email\SymfonyMailer;
|
||||
|
||||
return [
|
||||
EmailConfiguration::class => function($c) {
|
||||
$email = new EmailConfiguration( EmailConfiguration::AUTH_TYPE_SMTP );
|
||||
$email->smtpHost = getenv('SMTP_HOST');
|
||||
$email->smtpHost = getenv('SMTP_HOSTNAME');
|
||||
$email->smtpPort = getenv('SMTP_PORT');
|
||||
$email->smtpUsername = getenv('SMTP_USERNAME');
|
||||
$email->smtpPassword = getenv('SMTP_PASSWORD');
|
||||
@@ -20,5 +20,5 @@ return [
|
||||
return $email;
|
||||
},
|
||||
|
||||
MailerInterface::class => autowire(SwiftMailer::class),
|
||||
MailerInterface::class => autowire(SymfonyMailer::class),
|
||||
];
|
||||
Reference in new issue
Block a user