Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Wednesday, October 14, 2026

Diff for Metafox/lib/Mail.php between version 1.4 and 1.5

version 1.4, 2011/11/22 16:06:58 version 1.5, 2015/11/24 17:21:06
Line 71  class Mail
Line 71  class Mail
      * @return object Mail a instance of the driver class or if fails a PEAR Error       * @return object Mail a instance of the driver class or if fails a PEAR Error
      * @access public       * @access public
      */       */
     function &factory($driver, $params = array())      public static function &factory($driver, $params = array())
     {      {
         $driver = strtolower($driver);          $driver = strtolower($driver);
         @include_once 'Mail/' . $driver . '.php';          @include_once 'Mail/' . $driver . '.php';
Line 250  class Mail
Line 250  class Mail
         // Parse recipients, leaving out all personal info. This is          // Parse recipients, leaving out all personal info. This is
         // for smtp recipients, etc. All relevant personal information          // for smtp recipients, etc. All relevant personal information
         // should already be in the headers.          // should already be in the headers.
         $addresses = Mail_RFC822::parseAddressList($recipients, 'localhost', false);                  $obj_mail_rfc822 = new Mail_RFC822($recipients, 'localhost', false);
           $addresses = $obj_mail_rfc822->parseAddressList($recipients, 'localhost', false);
   
         // If parseAddressList() returned a PEAR_Error object, just return it.          // If parseAddressList() returned a PEAR_Error object, just return it.
         if (is_a($addresses, 'PEAR_Error')) {          if (is_a($addresses, 'PEAR_Error')) {

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top