Created
June 24, 2018 16:30
-
-
Save fixable11/0190eb4d2af8251c3926aeff328cfa69 to your computer and use it in GitHub Desktop.
Yii2 mailer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'mailer' => [ | |
'class' => 'yii\swiftmailer\Mailer', | |
// send all mails to a file by default. You have to set | |
// 'useFileTransport' to false and configure a transport | |
// for the mailer to send real emails. | |
'useFileTransport' => false, | |
'transport' => [ | |
'class' => 'Swift_SmtpTransport', | |
'host' => 'smtp.gmail.com', | |
'username' => 'email', | |
'password' => 'password', | |
'port' => '587', | |
'encryption' => 'tls', | |
'streamOptions' => [ 'ssl' => [ 'allow_self_signed' => true, 'verify_peer' => false, 'verify_peer_name' => false, ], ] | |
], | |
], |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment