From 29626daedb058edf1e61e3b648e291ddd00f7bb1 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Wed, 9 Mar 2016 12:03:33 +0200 Subject: [PATCH] ашкые --- protected/controllers/AjaxStoFilterController.php | 23 +++++++++-------------- protected/views/stoFilter/_priceList.php | 6 +++--- 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/protected/controllers/AjaxStoFilterController.php b/protected/controllers/AjaxStoFilterController.php index 6d578c3..608dcae 100644 --- a/protected/controllers/AjaxStoFilterController.php +++ b/protected/controllers/AjaxStoFilterController.php @@ -1,5 +1,5 @@ request->getParam('phone'); $email = Yii::app()->request->getParam('email'); - Yii::import('application.extensions.phpmailer.JPhpMailer'); - $mail = new JPhpMailer; - $mail->IsSMTP(); - $mail->Host = 'smtp.gmail.com'; - $mail->SMTPAuth = true; - $mail->Username = 'dockdep@gmail.com'; - $mail->Password = 'k0l0b04eg'; - $mail->SetFrom('dockdep@gmail.com', 'Авто Лайв'); - $mail->Subject = 'Расчет стоимости ТО'; - $mail->AltBody = $text.'
Имя:'.$name.'
Телефон:'. $phone.'
Email:'. $email; - $mail->MsgHTML('

JUST A TEST!

'); - $mail->AddAddress('john.doe@otherdomain.com', 'John Doe'); - $mail->Send(); + $to = $email; + $subject = 'Расчет стоимости ТО'; + $message = $text.'
Имя:'.$name.'
Телефон:'. $phone.'
Email:'. $email; + $headers = 'From: webmaster@example.com' . "\r\n" . + 'Reply-To: webmaster@example.com' . "\r\n" . + 'X-Mailer: PHP/' . phpversion(); + + mail($to, $subject, $message, $headers); } diff --git a/protected/views/stoFilter/_priceList.php b/protected/views/stoFilter/_priceList.php index 7b39e04..623359d 100644 --- a/protected/views/stoFilter/_priceList.php +++ b/protected/views/stoFilter/_priceList.php @@ -90,6 +90,6 @@ $count = count($fields);
-
- Оформить заявку -
+ + + \ No newline at end of file -- libgit2 0.21.4