Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

[ENH] Add vars in env to mailer config #32

Open
pana1990 opened this issue Aug 1, 2017 · 1 comment
Open

[ENH] Add vars in env to mailer config #32

pana1990 opened this issue Aug 1, 2017 · 1 comment
Assignees

Comments

@pana1990
Copy link
Contributor

pana1990 commented Aug 1, 2017

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'),
],
@tonydspaniard
Copy link
Member

You are right. I'll do.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants