Aleksander Machniak
2013-03-26 321d8b06fb32d6fa6bc991f7fbb95d63bdb70390
program/steps/mail/sendmail.inc
@@ -559,7 +559,7 @@
  $plugin['body'] = rcmail_replace_emoticons($plugin['body']);
  // add a plain text version of the e-mail as an alternative part.
  $h2t = new html2text($plugin['body'], false, true, 0, $message_charset);
  $h2t = new rcube_html2text($plugin['body'], false, true, 0, $message_charset);
  $plainTextPart = rc_wordwrap($h2t->get_text(), $LINE_LENGTH, "\r\n", false, $message_charset);
  $plainTextPart = wordwrap($plainTextPart, 998, "\r\n", true);
@@ -820,6 +820,6 @@
  if ($store_folder && !$saved)
    $OUTPUT->command('sent_successfully', 'error', rcube_label('errorsavingsent'));
  else
    $OUTPUT->command('sent_successfully', 'confirmation', rcube_label('messagesent'));
    $OUTPUT->command('sent_successfully', 'confirmation', rcube_label('messagesent'), $store_target);
  $OUTPUT->send('iframe');
}