linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file x7iYhD98w_sendmail.php

Documentation is available at x7iYhD98w_sendmail.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage newsletter
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. include_once('../config/define.php');
  12. include_once('../class/class.newsletter.php');
  13. include_once('../class/system/class.'.SQL.'.php');
  14. include_once("../lib/functions_auth.php");
  15. include_once(SQL '.inc.php');
  16.  
  17. @set_time_limit(0)// suppression du timeout
  18.  
  19. $sql_entity SQL;
  20. $sql_object new $sql_entity;
  21. $sql_object->DBInitialise();
  22. $sql_object->DBConnexion();
  23. // sélection des newsletters à envoyer
  24. $newsletters $sql_object->DBSelect(SQL_GetNewsletter2Send());
  25. if (count($newsletters<= && $newsletters[0== falseexit;
  26.  
  27. // récupération des emails
  28. $emails_batch $sql_object->DBSelect(SQL_GetEmails4Sending());
  29.  
  30. if (count($emails_batch== && $emails_batch[0== falseexit;
  31.  
  32. $newsletter_object new newsletter;
  33.  
  34. $path $newsletter_object->URI_TEMPLATE;
  35.  
  36. // html
  37. $template_html file_get_contents(themePath($path '.html'));
  38. // text
  39. $template_txt file_get_contents(themePath($path '.txt'));
  40.  
  41. require(themePath("../mail/template_newsletter.php"));
  42.  
  43. ?>

Documentation generated on Thu, 03 May 2012 15:08:00 +0200 by phpDocumentor 1.4.1