|
@@ -47,13 +47,13 @@ class Deliver_SendMail extends Deliver {
|
|
var $sendmail_command = '';
|
|
var $sendmail_command = '';
|
|
|
|
|
|
/**
|
|
/**
|
|
- * Constructor function
|
|
|
|
|
|
+ * Constructor (PHP5 style, required in some future version of PHP)
|
|
* @param array configuration options. array key = option name,
|
|
* @param array configuration options. array key = option name,
|
|
* array value = option value.
|
|
* array value = option value.
|
|
* @return void
|
|
* @return void
|
|
* @since 1.5.1
|
|
* @since 1.5.1
|
|
*/
|
|
*/
|
|
- function Deliver_SendMail($params=array()) {
|
|
|
|
|
|
+ function __construct($params=array()) {
|
|
if (!empty($params) && is_array($params)) {
|
|
if (!empty($params) && is_array($params)) {
|
|
// set extra sendmail arguments
|
|
// set extra sendmail arguments
|
|
if (isset($params['sendmail_args'])) {
|
|
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
|
|
* function preWriteToStream
|
|
*
|
|
*
|