diff options
author | Thomas B. <thomas@roundcube.net> | 2013-09-16 10:47:24 -0700 |
---|---|---|
committer | Thomas B. <thomas@roundcube.net> | 2013-09-16 10:47:24 -0700 |
commit | 0201298cd8f767389789f7c35897985d4475836a (patch) | |
tree | 49ba49fade3e2dd998a569e1694c5e31ad301af3 /program/steps/mail/sendmail.inc | |
parent | b5c364273d7b026c0deda2326018aabff8bec73c (diff) | |
parent | 153e455f6566cb7a4349b7f2197e842d6ec9bf90 (diff) |
Merge pull request #118 from Dennis1993/patch-12
Added support for default font size and fix legacy code for default font
Diffstat (limited to 'program/steps/mail/sendmail.inc')
-rw-r--r-- | program/steps/mail/sendmail.inc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/program/steps/mail/sendmail.inc b/program/steps/mail/sendmail.inc index 779fb87cd..8fe149611 100644 --- a/program/steps/mail/sendmail.inc +++ b/program/steps/mail/sendmail.inc @@ -473,8 +473,10 @@ $isHtml = (bool) get_input_value('_is_html', RCUBE_INPUT_POST); $message_body = get_input_value('_message', RCUBE_INPUT_POST, TRUE, $message_charset); if ($isHtml) { - $font = rcube_fontdefs($RCMAIL->config->get('default_font')); - $bstyle = $font && is_string($font) ? " style='font-family: $font'" : ''; + $font = rcube_fontdefs($RCMAIL->config->get('default_font')); + $font = $font && is_string($font) ? ' '.$font : NULL; + $font_size = $RCMAIL->config->get('default_font_size'); + $bstyle = " style='font: ".$font_size.$font.";'"; // append doctype and html/body wrappers $message_body = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">' . |