Добавлена поддержка smtp для production через контейнер на главном сайте

This commit is contained in:
ErickSkrauch
2016-10-07 01:01:54 +03:00
parent f193964ea3
commit 46c64b0180
2 changed files with 21 additions and 0 deletions

View File

@@ -6,5 +6,22 @@ return [
'schemaCacheDuration' => 3600,
'schemaCache' => 'cache',
],
'mailer' => [
'useFileTransport' => false,
'transport' => [
'class' => Swift_SmtpTransport::class,
'host' => 'ely.by',
'username' => getenv('SMTP_USER'),
'password' => getenv('SMTP_PASS'),
'port' => 587,
'encryption' => 'tls',
'streamOptions' => [
'ssl' => [
'allow_self_signed' => true,
'verify_peer' => false,
],
],
],
],
],
];