ryan 5 өдөр өмнө
parent
commit
76ea85c854
1 өөрчлөгдсөн 20 нэмэгдсэн , 1 устгасан
  1. 20 1
      common/config/main.php

+ 20 - 1
common/config/main.php

@@ -52,6 +52,20 @@ return [
         'redis' => array_merge(['class' => 'yii\redis\Connection'], $mainConfig['otherRedis']),
         // 'tokenRedis' => array_merge(['class' => 'common\components\Redis'], $mainConfig['tokenRedis']),
         // 'redis' => array_merge(['class' => 'common\components\Redis'], $mainConfig['otherRedis']),
+//        'mailer' => [
+//            'class' => 'yii\swiftmailer\Mailer',
+//            'viewPath' => '@common/mail',
+//            'useFileTransport' => false,
+//            'enableSwiftMailerLogging' => true,
+//            'transport' => [
+//                'class' => 'Swift_SmtpTransport',
+//                'host' => 'mail.authsmtp.com',
+//                'port' => 325,
+//                'username' => 'ac71555',
+//                'password' => 'I1j-MKi-fJ8-nHb',
+////                'encryption' => 'TLS',
+//            ],
+//        ],
         'mailer' => [
             'class' => 'yii\swiftmailer\Mailer',
             'viewPath' => '@common/mail',
@@ -63,7 +77,12 @@ return [
                 'port' => 325,
                 'username' => 'ac71555',
                 'password' => 'I1j-MKi-fJ8-nHb',
-//                'encryption' => 'TLS',
+                //'encryption' => 'TLS',
+                'streamOptions' => [
+                    'socket' => [
+                        'bindto' => '0.0.0.0:0',
+                    ],
+                ],
             ],
         ],
         'swooleAsyncTimer' => [