Commit 3b6bd2c73dee79be1c9efa6591d1414196d85abb
1 parent
25b92d3b
generate letter
Showing
2 changed files
with
6 additions
and
6 deletions
Show diff stats
src/app/frontend/views/sendmail/abandoned_basket.phtml renamed to src/app/tasks/templates/abandoned_basket.php
src/lib/sendmail.php
... | ... | @@ -300,12 +300,12 @@ namespace |
300 | 300 | 'X-Mailer: PHP/' . phpversion(); |
301 | 301 | |
302 | 302 | //msg body |
303 | - $view = new \Phalcon\Mvc\View(); | |
304 | - $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) ); | |
305 | - $view->start(); | |
306 | - $view->render( 'sendmail', 'message_10' ); | |
307 | - $view->finish(); | |
308 | - $body = $view->getContent(); | |
303 | +// $view = new \Phalcon\Mvc\View(); | |
304 | +// $view->setViewsDir( ROOT_PATH.config::get( 'dirs/viewsDir' ) ); | |
305 | +// $view->start(); | |
306 | +// $view->render( 'sendmail', 'message_10' ); | |
307 | +// $view->finish(); | |
308 | + $body = file_get_contents('/templates/abandoned_basket.php'); | |
309 | 309 | |
310 | 310 | if( mail( $email, $data_base['subject'], $body, $header, '-f '.$email_from ) ) { |
311 | 311 | return true; | ... | ... |