Closed (fixed)
Project:
Mail Template
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Apr 2011 at 16:04 UTC
Updated:
16 May 2011 at 07:51 UTC
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
Comment #1
vasikethanks 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.