Commit e3986d0e11d507012b066e297130b02dd8baca82

Authored by Alex Savenko
1 parent 269ae76a

generate letter

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
src/lib/sendmail.php
... ... @@ -305,8 +305,9 @@ namespace
305 305 $view->start();
306 306 $view->render( 'sendmail', 'abandoned_basket.php' );
307 307 $view->finish();
  308 + $body = file_get_contents(ROOT_PATH.config::get( 'dirs/viewsDir' ).'abandoned_basket.php');
308 309  
309   - if( mail( $email, $data_base['subject'], $view->getContent(), $header, '-f '.$email_from ) ) {
  310 + if( mail( $email, $data_base['subject'], $body, $header, '-f '.$email_from ) ) {
310 311 return true;
311 312 }
312 313 else {
... ...