Rozdiely pre Metafox/lib/Mail.php medzi verziami 1.4 a 1.5
verzia 1.4, 2011/11/22 16:06:58 |
verzia 1.5, 2015/11/24 17:21:06 |
|
|
* @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'; |
|
|
// 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')) { |
Platon Group <platon@platon.sk> http://platon.sk/
|
|