Commit 08ccae24021fa7298e9cb59ccc4e7ff1a553ae2c

Authored by Alex Savenko
1 parent 7d2a1547

controller

Showing 1 changed file with 8 additions and 4 deletions   Show diff stats
src/lib/sendmail.php
@@ -226,6 +226,10 @@ namespace @@ -226,6 +226,10 @@ namespace
226 ///////////////////////////////////////////////////////////////////////////// 226 /////////////////////////////////////////////////////////////////////////////
227 227
228 public function sendSubscribe($data) { 228 public function sendSubscribe($data) {
  229 +
  230 + $acc_log = 'promokod.semenainua@gmail.com';
  231 + $acc_pass = 'promokod0411';
  232 +
229 $view = new \Phalcon\Mvc\View(); 233 $view = new \Phalcon\Mvc\View();
230 $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) ); 234 $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) );
231 235
@@ -260,16 +264,16 @@ namespace @@ -260,16 +264,16 @@ namespace
260 //Whether to use SMTP authentication 264 //Whether to use SMTP authentication
261 $mail->SMTPAuth = true; 265 $mail->SMTPAuth = true;
262 //Username to use for SMTP authentication - use full email address for gmail 266 //Username to use for SMTP authentication - use full email address for gmail
263 - $mail->Username = "arctic.semenainua@gmail.com"; 267 + $mail->Username = $acc_log;
264 //Password to use for SMTP authentication 268 //Password to use for SMTP authentication
265 - $mail->Password = "arctic0411"; 269 + $mail->Password = $acc_pass;
266 270
267 //Set who the message is to be sent from 271 //Set who the message is to be sent from
268 - $mail->setFrom('semena@hs.kiev.ua', 'semena.in.ua'); 272 + $mail->setFrom('semena@hs.kiev.ua', 'semena@hs.kiev.ua');
269 //Set who the message is to be sent to 273 //Set who the message is to be sent to
270 $mail->addAddress($data['email'], $data['name']); 274 $mail->addAddress($data['email'], $data['name']);
271 //Set the subject line 275 //Set the subject line
272 - $mail->Subject = 'Промокод на сайт semena.in.ua'; 276 + $mail->Subject = 'Благодарим за подписку!';
273 //Read an HTML message body from an external file, convert referenced images to embedded, 277 //Read an HTML message body from an external file, convert referenced images to embedded,
274 //convert HTML into a basic plain-text alternative body 278 //convert HTML into a basic plain-text alternative body
275 279