function mail_template_mail_alter(&$message) {
  $message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed;';
}

This breaks formatting of every message the site sends. I think there must be more accurate logic for determining whether to use html format. For example, looking at message id and input format of templates.

Comments

vasike’s picture

Status: Active » Fixed

thanks for the support.

hook_mail_alter & hook_mail shoudn't be present here anymore, because mail_template should use mimemail for sending/building emails

those functions are just old code.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.