Html email header for custom email templates

Is it possible to create custom email header? I know you can change E-mail templates in settings:

But this is only the ‘body’ of the email and the ckeditor has ‘cleaned up’ the html source. In order to be compatible with all email clients, the head-tag for all emails must also be customized. This shouldn’t be customizes by each email template but general for all emails. We want to add css declarations in the head for background, table width, …

  1. Is there a setting or file to change the general html-head email header?
  2. Is it possible to disable ckeditor cleanup for email templates?

Example of email:

Hi any clue on this?

I want to create my email templates like above screenshot attached by phpdev. How can I do this on Dolibarr?

Benchintada,

We solved this with hooks. We add template html header before and footer after email text(editor.)