[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/class/ -> MP_Connection_spool.class.php (source)

   1  <?php
   2  class MP_Connection_spool extends MP_connection_
   3  {
   4      public $Swift_Connection_type = 'spool';
   5  
   6  	function connect($mail_id, $y)
   7      {
   8          $settings = get_option(MailPress_batch_spool_send::option_name);
   9  
  10          $p = false;
  11          if (!empty($settings['path'])) $p = MailPress_batch_spool_send::is_path($settings['path'] . "/$mail_id");
  12          if (!$p) $p = MailPress_batch_spool_send::is_path(MP_ABSPATH . 'tmp/spool/' . $mail_id); 
  13  
  14          $y->log("**** Spool path is : $p ****");
  15  
  16          $spool =  new Swift_FileSpool($p);
  17  
  18          return Swift_SpoolTransport::newInstance($spool);
  19      }
  20  }


Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1