diff --git a/mailmime.inc b/mailmime.inc
old mode 100644
new mode 100755
index 1cbe78b..ae44355
--- a/mailmime.inc
+++ b/mailmime.inc
@@ -47,6 +47,29 @@ if (!function_exists('url_to_path')) {
  * @see http://pear.php.net/package/Mail_mime
  */
 class MailMIME extends Mail_mime {
+  
+  /**
+   * Constructor function.
+   *
+   * @param mixed $params 
+   *   Build parameters that change the way the email is built. Should be an 
+   *   associative array. See $build_params.
+   *
+   * @return void
+   */
+  public function __construct($params = array()) {
+    //Set parameters used for building the formatted message.
+    $this->setParam('head_encoding', 'quoted-printable');
+    $this->setParam('text_encoding', '8bit');
+    $this->setParam('html_encoding', '8bit');
+    $this->setParam('html_charset', 'UTF-8');
+    $this->setParam('text_charset', 'UTF-8');
+    $this->setParam('head_charset', 'UTF-8');
+    $this->setParam('eol', MAIL_MIME_CRLF);
+    $this->setParam('delay_file_io', TRUE);
+    parent::__construct($params);
+  }
+  
   /**
    * Holds attached content-ids to to avoid attaching the same file twice.
    *
@@ -55,47 +78,6 @@ class MailMIME extends Mail_mime {
   protected $cids = array();
 
   /**
-   * Holds parameters used for building the formatted message.
-   *
-   * @var array
-   *   An associative array of parameters containing the following:
-   *   - head_encoding: The encoding to use for headers.  May be:
-   *     - base64:
-   *     - quoted-printable: (default)
-   *   - text_encoding: The encoding to use for the text/plain part.  May be:
-   *     - 7bit:
-   *     - 8bit:
-   *     - base64:
-   *     - quoted-printable: (default)
-   *   - html_encoding: The encoding to use for the text/html part.  May be:
-   *     - 7bit:
-   *     - 8bit:
-   *     - base64:
-   *     - quoted-printable: (default)
-   *   - html_charset: The character set to use for the text/html part.
-   *     Defaults to 'UTF-8'.
-   *   - text_charset: The character set to use for the text/plain part.
-   *     Defaults to 'UTF-8'.
-   *   - head_charset: The character set to use for the header values.
-   *     Defaults to 'UTF-8'.
-   *   - eol: The end-of-line or line-ending sequence.  Defaults to an auto-
-   *     detected value depending on the server operating system.  May be
-   *     overridden by setting $config['mail_line_endings'].
-   *   - delay_file_io: FALSE if attached files should be read immediately,
-   *     rather than when the message is built.  Defaults to TRUE.
-   */
-  public $_build_params = array(
-    'head_encoding' => 'quoted-printable',
-    'text_encoding' => '8bit',
-    'html_encoding' => '8bit',
-    'html_charset' => 'UTF-8',
-    'text_charset' => 'UTF-8',
-    'head_charset' => 'UTF-8',
-    'eol' => MAIL_MIME_CRLF,
-    'delay_file_io' => TRUE,
-  );
-
-  /**
    * Routes PEAR_Error objects to watchdog().
    *
    * Passes PEAR_Error objects to watchdog(), and returns FALSE.
