X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=class%2Fdeliver%2FDeliver_SendMail.class.php;h=06abdd3173e0c5df2b382a7bd370272c71429363;hp=0a8373cdc1c765ec57e05bd4de3b5df9c930033d;hb=6654098883ee3a5b5ca49b54020a743c3ef4a46c;hpb=d4e46166df04792c6b939356ea5dfda8e47bba7b diff --git a/class/deliver/Deliver_SendMail.class.php b/class/deliver/Deliver_SendMail.class.php index 0a8373cd..06abdd31 100644 --- a/class/deliver/Deliver_SendMail.class.php +++ b/class/deliver/Deliver_SendMail.class.php @@ -6,7 +6,7 @@ * Delivery backend for the Deliver class. * * @author Marc Groot Koerkamp - * @copyright © 1999-2009 The SquirrelMail Project Team + * @copyright 1999-2017 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package squirrelmail @@ -47,13 +47,13 @@ class Deliver_SendMail extends Deliver { var $sendmail_command = ''; /** - * Constructor function + * Constructor (PHP5 style, required in some future version of PHP) * @param array configuration options. array key = option name, * array value = option value. * @return void * @since 1.5.1 */ - function Deliver_SendMail($params=array()) { + function __construct($params=array()) { if (!empty($params) && is_array($params)) { // set extra sendmail arguments if (isset($params['sendmail_args'])) { @@ -62,6 +62,17 @@ class Deliver_SendMail extends Deliver { } } + /** + * Constructor (PHP4 style, kept for compatibility reasons) + * @param array configuration options. array key = option name, + * array value = option value. + * @return void + * @since 1.5.1 + */ + function Deliver_SendMail($params=array()) { + self::__construct($params); + } + /** * function preWriteToStream * @@ -86,10 +97,12 @@ class Deliver_SendMail extends Deliver { * * @param Message $message Message object containing the from address * @param string $sendmail_path Location of sendmail binary + * @param mixed $ignore_x Eight extra arguments that the parent class + * requires which are not used here * @return resource * @access public */ - function initStream($message, $sendmail_path) { + function initStream($message, $sendmail_path, $ignore_1=0, $ignore_2='', $ignore_3='', $ignore_4='', $ignore_5='', $ignore_6=false, $ignore_7='', $ignore_8=array()) { $rfc822_header = $message->rfc822_header; $from = $rfc822_header->from[0]; $envelopefrom = trim($from->mailbox.'@'.$from->host);