Ignore:
Timestamp:
Nov 18, 2005 10:32:20 AM (8 years ago)
Author:
roundcube
Message:

Fixed minor bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/program/steps/mail/sendmail.inc

    r83 r85  
    138138 
    139139 
     140// append generic footer to all messages 
     141if (!empty($CONFIG['generic_message_footer'])) 
     142  { 
     143  $file = realpath($CONFIG['generic_message_footer']); 
     144  if($fp = fopen($file, 'r')) 
     145    { 
     146    $content = fread($fp, filesize($file)); 
     147    fclose($fp); 
     148    $_POST['_message'] .= "\r\n" . $content; 
     149    } 
     150  } 
     151 
     152 
     153// use the configured delimiter for headers 
     154$header_delm = $rcmail_config['mail_header_delimiter'] ? $rcmail_config['mail_header_delimiter'] : "\r\n"; 
     155 
    140156// create PEAR::Mail_mime instance 
    141 $MAIL_MIME = new Mail_mime("\n"); 
     157$MAIL_MIME = new Mail_mime($header_delm); 
    142158$MAIL_MIME->setTXTBody(stripslashes($_POST['_message']), FALSE, TRUE); 
    143159//$MAIL_MIME->setTXTBody(wordwrap(stripslashes($_POST['_message'])), FALSE, TRUE); 
     
    159175                       'html_encoding' => 'quoted-printable', 
    160176                       'head_encoding' => 'quoted-printable', 
    161                        'head_charset'  => 'ISO-8859-1', 
    162                        'html_charset'  => 'ISO-8859-1', 
    163                        'text_charset'  => 'ISO-8859-1'); 
     177                       'head_charset'  => $CHARSET, 
     178                       'html_charset'  => $CHARSET, 
     179                       'text_charset'  => $CHARSET); 
    164180 
    165181// compose message body and get headers 
Note: See TracChangeset for help on using the changeset viewer.