Add ability to control the display of the "Check Spelling" button. Allows administrat...
[squirrelmail.git] / functions / compose.php
index 8ba705489e93e5aaa4fa344cab47ab70138419eb..607184b447b2cd29e8446ed2d20d25a128d4aa29 100644 (file)
@@ -6,7 +6,7 @@
  * Functions for message compositon: writing a message, attaching files etc.
  *
  * @author Thijs Kinkhorst <kink at squirrelmail.org>
- * @copyright 1999-2012 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
@@ -105,9 +105,9 @@ function sq_send_mail($to, $subject, $body, $from, $cc='', $bcc='', $message='')
       $content_type = new ContentType('text/plain');
       global $special_encoding, $default_charset;
       if ($special_encoding)
-         $rfc822_header->encoding = $special_encoding;
+         $header->encoding = $special_encoding;
       else
-         $rfc822_header->encoding = '8bit';
+         $header->encoding = '8bit';
       if ($default_charset)
          $content_type->properties['charset']=$default_charset;
       $header->content_type = $content_type;