Commit 08ccae24021fa7298e9cb59ccc4e7ff1a553ae2c
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 | 226 | ///////////////////////////////////////////////////////////////////////////// | 
| 227 | 227 | |
| 228 | 228 | public function sendSubscribe($data) { | 
| 229 | + | |
| 230 | + $acc_log = 'promokod.semenainua@gmail.com'; | |
| 231 | + $acc_pass = 'promokod0411'; | |
| 232 | + | |
| 229 | 233 | $view = new \Phalcon\Mvc\View(); | 
| 230 | 234 | $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) ); | 
| 231 | 235 | |
| ... | ... | @@ -260,16 +264,16 @@ namespace | 
| 260 | 264 | //Whether to use SMTP authentication | 
| 261 | 265 | $mail->SMTPAuth = true; | 
| 262 | 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 | 268 | //Password to use for SMTP authentication | 
| 265 | - $mail->Password = "arctic0411"; | |
| 269 | + $mail->Password = $acc_pass; | |
| 266 | 270 | |
| 267 | 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 | 273 | //Set who the message is to be sent to | 
| 270 | 274 | $mail->addAddress($data['email'], $data['name']); | 
| 271 | 275 | //Set the subject line | 
| 272 | - $mail->Subject = 'Промокод на сайт semena.in.ua'; | |
| 276 | + $mail->Subject = 'Благодарим за подписку!'; | |
| 273 | 277 | //Read an HTML message body from an external file, convert referenced images to embedded, | 
| 274 | 278 | //convert HTML into a basic plain-text alternative body | 
| 275 | 279 | ... | ... | 
