yii2-app-template icon indicating copy to clipboard operation
yii2-app-template copied to clipboard

[ENH] Add vars in env to mailer config

Open pana1990 opened this issue 7 years ago • 1 comments

I think is useful add the following vars in .env :

MAIL_HOST                     = 
MAIL_USERNAME           =  
MAIL_PASSWORD           =  
MAIL_PORT                     = 587
MAIL_ENCRYPTION         = tls

And

'transport' => [
             'class' => 'Swift_SmtpTransport',
             'host' => ConfigKit::env()->get('MAIL_HOST'),
             'username' => ConfigKit::env()->get('MAIL_USERNAME'),
             'password' => ConfigKit::env()->get('MAIL_PASSWORD'),
              'port' => ConfigKit::env()->get('MAIL_PORT'),
              'encryption' => ConfigKit::env()->get('MAIL_ENCRYPTION'),
],

pana1990 avatar Aug 01 '17 08:08 pana1990

You are right. I'll do.

tonydspaniard avatar Dec 06 '17 19:12 tonydspaniard