Update smtp mail transport configuration

This commit is contained in:
ErickSkrauch
2019-12-29 17:59:58 +03:00
parent 7607248c27
commit 3e1fb19cf3
4 changed files with 53 additions and 48 deletions

View File

@@ -54,17 +54,11 @@ return [
'viewPath' => '@common/mail',
'transport' => [
'class' => Swift_SmtpTransport::class,
'host' => 'ely.by',
'host' => getenv('SMTP_HOST'),
'username' => getenv('SMTP_USER'),
'password' => getenv('SMTP_PASS'),
'port' => getenv('SMTP_PORT') ?: 587,
'encryption' => 'tls',
'streamOptions' => [
'ssl' => [
'allow_self_signed' => true,
'verify_peer' => false,
],
],
'encryption' => getenv('SMTP_ENCRYPTION') ?: 'tls',
],
],
'sentry' => [