How to enable HTML mode for all email accounts ✉️ on Horde & RoundCube Webmail in cPanel

How to enable HTML mode for all email accounts ✉️ on Horde & RoundCube Webmail in cPanel

In both Horde and RoundCube the default mode for writting emails is plain text and not HTML.

To enable HTML we need to edit one file for each program.

RoundCube

For roundcube on cPanel the file to be edited is: /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php

Locate the following:

// compose html formatted messages by default
//  0 - never,
//  1 - always,
//  2 - on reply to HTML message,
//  3 - on forward or reply to HTML message
//  4 - always, except when replying to plain text message

$config['htmleditor'] = 0;

and change

$config['htmleditor'] = 0;

to

$config['htmleditor'] = 1;

This will result in the RoundCube Webmail to switch the writing mode from plain text to HTML:

RoundCube Webmail compose messages in plain text mode and with HTML enabledRoundCube Webmail compose messages in plain text mode and with HTML enabled
RoundCube Webmail compose messages in plain text mode and with HTML enabled

Horde

For Horde Webmail on cPanel the file to be edited in order to enable HTML mode while composing messages: /usr/local/cpanel/base/horde/imp/config/mime_drivers.php

In it locate the following file:

    /* HTML driver settings */
    'html' => array(
        /* NOTE: Inline HTML display is turned OFF by default. */
        'inline' => false,
        'handles' => array(
            'text/html'
        ),
        'icons' => array(
            'default' => 'html.png'
        ),

        'limit_inline_size' => 1048576,

        /* Check for phishing exploits? */
        'phishing_check' => true
    ),

You can change the following line:

 'inline' => false,


to:

 'inline' => true,

This will result in the Horde Webmail to switch the writing mode from plain text to HTML:

See also  RoundCube (Internal Server Error) on CWP
horde plain text - How to enable HTML mode for all email accounts ✉️ on Horde & RoundCube Webmail in cPanelhorde html - How to enable HTML mode for all email accounts ✉️ on Horde & RoundCube Webmail in cPanel
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.