]> gitweb.erp-flowers.ru Git - erp24_rep/yii-erp24/.git/commitdiff
Тестим почту
authorVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 23 Jan 2026 15:07:22 +0000 (18:07 +0300)
committerVladimir Fomichev <vladimir.fomichev@erp-flowers.ru>
Fri, 23 Jan 2026 15:07:22 +0000 (18:07 +0300)
erp24/config/console.php
erp24/config/web.php

index 46e879e0f761fa3f993181916701b66baa314d8c..e5a0fd277581a3859882c5fe562fa80bbb9f4c03 100755 (executable)
@@ -65,10 +65,9 @@ $config = [
             'transport' => [
                 'dsn' => sprintf(
                     '%s://%s:%s@%s:%d',
-                    'smtps',
                     getenv('MAIL_SCHEME') ?: 'smtps',
-                    urlencode(getenv('MAIL_USERNAME') ?: 'flow@bazacvetov24.ru'),
-                    urlencode(getenv('MAIL_PASSWORD') ?: 'ctqamxqeshgxwsgn'),
+                    rawurlencode(getenv('MAIL_USERNAME') ?: 'flow@bazacvetov24.ru'),
+                    rawurlencode(getenv('MAIL_PASSWORD') ?: ''),
                     getenv('MAIL_HOST') ?: 'smtp.yandex.ru',
                     (int)(getenv('MAIL_PORT') ?: 465)
                 ),
index 9466b179c5e5defe47bf8eb30dbc7829b9637751..c85f05cec4d84a03e018fe4311547b498f47e495 100644 (file)
@@ -78,10 +78,9 @@ $config = [
             'transport' => [
                 'dsn' => sprintf(
                     '%s://%s:%s@%s:%d',
-                    'smtps',
                     getenv('MAIL_SCHEME') ?: 'smtps',
-                    urlencode(getenv('MAIL_USERNAME') ?: 'flow@bazacvetov24.ru'),
-                    urlencode(getenv('MAIL_PASSWORD') ?: 'ctqamxqeshgxwsgn'),
+                    rawurlencode(getenv('MAIL_USERNAME') ?: 'flow@bazacvetov24.ru'),
+                    rawurlencode(getenv('MAIL_PASSWORD') ?: ''),
                     getenv('MAIL_HOST') ?: 'smtp.yandex.ru',
                     (int)(getenv('MAIL_PORT') ?: 465)
                 ),