diff --git a/common/config/main.php b/common/config/main.php index dab8b2e..f739c3b 100755 --- a/common/config/main.php +++ b/common/config/main.php @@ -51,5 +51,17 @@ 'useFilename' => true, 'absoluteUrl' => false, ], + 'mailer' => [ + 'class' => 'yii\swiftmailer\Mailer', + 'transport' => [ + 'class' => 'Swift_SmtpTransport', + 'host' => 'smtp.gmail.com', + 'username' => 'clud.net.mails@gmail.com', + 'password' => 'a3E6yNb9KUtF', + 'port' => '587', + 'encryption' => 'tls', + ], + 'viewPath' => '@common/mail', + ], ], ]; diff --git a/common/mail/feedback.php b/common/mail/feedback.php new file mode 100644 index 0000000..96ae435 --- /dev/null +++ b/common/mail/feedback.php @@ -0,0 +1,37 @@ + + +
Имя | +=$model->name?> | +
Телефон | +=$model->phone?> | +
=$model->email?> | +|
Комментарий | +=!empty($model->message)?$model->message:''?> | +
Url | +=$model->url?> | +
- Success text -
-+ Success text +
+Thank for your reply, we will call you, maybe.
+Спасибо, ваша заявка принята. Мы свяжемся с вами в ближайшее время
-- libgit2 0.21.4