diff --git a/src/lib/sendmail.php b/src/lib/sendmail.php index b2e06d7..2442c9a 100644 --- a/src/lib/sendmail.php +++ b/src/lib/sendmail.php @@ -226,6 +226,10 @@ namespace ///////////////////////////////////////////////////////////////////////////// public function sendSubscribe($data) { + + $acc_log = 'promokod.semenainua@gmail.com'; + $acc_pass = 'promokod0411'; + $view = new \Phalcon\Mvc\View(); $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) ); @@ -260,16 +264,16 @@ namespace //Whether to use SMTP authentication $mail->SMTPAuth = true; //Username to use for SMTP authentication - use full email address for gmail - $mail->Username = "arctic.semenainua@gmail.com"; + $mail->Username = $acc_log; //Password to use for SMTP authentication - $mail->Password = "arctic0411"; + $mail->Password = $acc_pass; //Set who the message is to be sent from - $mail->setFrom('semena@hs.kiev.ua', 'semena.in.ua'); + $mail->setFrom('semena@hs.kiev.ua', 'semena@hs.kiev.ua'); //Set who the message is to be sent to $mail->addAddress($data['email'], $data['name']); //Set the subject line - $mail->Subject = 'Промокод на сайт semena.in.ua'; + $mail->Subject = 'Благодарим за подписку!'; //Read an HTML message body from an external file, convert referenced images to embedded, //convert HTML into a basic plain-text alternative body -- libgit2 0.21.4