|
|
@@ -57,7 +57,19 @@ return [
|
|
|
// 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' => true,
|
|
|
+ 'useFileTransport' => true, // true(缓存到文件中) false(发送邮件)
|
|
|
+ 'transport' => [
|
|
|
+ 'class' => 'Swift_SmtpTransport',
|
|
|
+ 'host' => 'mail.authsmtp.com',
|
|
|
+ 'port' => 325,
|
|
|
+ 'username' => 'ac71555',
|
|
|
+ 'password' => 'I1j-MKi-fJ8-nHb',
|
|
|
+ 'encryption' => 'TLS',
|
|
|
+ ],
|
|
|
+ 'messageConfig' => [
|
|
|
+ 'charset' => 'UTF-8',
|
|
|
+ 'from' => ['address' => 'eshop-noreply@elken.com']
|
|
|
+ ],
|
|
|
],
|
|
|
'swooleAsyncTimer' => [
|
|
|
'class' => 'common\components\SwooleAsyncTimer',
|