|
|
@@ -58,7 +58,21 @@ 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',
|
|
|
+
|
|
|
+// 'host' => 'smtp.163.com',
|
|
|
+// 'port' => 465,
|
|
|
+// 'username' => '18511880790@163.com',
|
|
|
+// 'password' => 'YOUSSWQHISDSWPVB',
|
|
|
+// 'encryption' => 'SSL',
|
|
|
+ ],
|
|
|
],
|
|
|
'swooleAsyncTimer' => [
|
|
|
'class' => 'common\components\SwooleAsyncTimer',
|