How to create email in HTML/base64 coding

Hi
In previous versions (now I am using 7.11.15) there was possibility to change email editor (compose email) into HTML
By using this workaround I was able to paste html witch images coded using base64
In current version its not possible
Change editor in setup works only for templates

I used this workaround because templates stored with images in base64 did not work (images disappeared), the same with signature template definition.
The same problem exist in current version (7.11.15)

Is anyone have an idea how to solve it ?
How its will be done in 8 version ?

Hi, @Kefir
Welcome to community :tada:!

  1. You can switch off editor in file
    modules/Emails/metadata/composeviewdefs.php
$viewdefs['Emails']['ComposeView'] = array(
...
        'includes' => array(
            array(
                'file' => 'modules/Emails/include/ComposeView/EmailsComposeView.js',
            ),
/*  comment or remove this lines*/
//            array(
//                'file' => 'include/javascript/mozaik/vendor/tinymce/tinymce/tinymce.min.js'
//            ),
            array(
                'file' => 'include/javascript/qtip/jquery.qtip.min.js'
            )
        ),
...
  1. Add to end of file modules/Emails/include/ComposeView/ComposeView.tpl the lines
...
<style>
    {literal}
        #description{
            width:100% !important;
        }
    {/literal}
</style>
  1. Clean the cache Admin -> Repair -> Quick Repair and Rebuild

In my PowerReplacer add-on, I had to add the ability to use the selected editor from the user profile. I always use Direct HTML.

@p.konetskiy did you try actually sending emails after that fix you propose? I am wondering if it doesn’t get confused due to having a description field but not a description_html field… :thinking:

@pgr, yes, I sent the mail without problems.