+ /**
+ * Constructor function
+ * @param array configuration options. array key = option name,
+ * array value = option value.
+ * @return void
+ * @since 1.5.1
+ */
+ function Deliver_SendMail($params=array()) {
+ if (!empty($params) && is_array($params)) {
+ // set extra sendmail arguments
+ if (isset($params['sendmail_args'])) {
+ $this->sendmail_args = $params['sendmail_args'];
+ }
+ }
+ }
+
+ /**
+ * function preWriteToStream
+ *
+ * Sendmail needs LF's as line endings instead of CRLF.
+ * This function translates the line endings to LF and should be called
+ * before each line is written to the stream.
+ *
+ * @param string $s Line to process
+ * @return void
+ * @access private
+ */