Index: workflow_ng/workflow_ng/modules/workflow_ng_system.inc =================================================================== --- workflow_ng/workflow_ng/modules/workflow_ng_system.inc +++ workflow_ng/workflow_ng/modules/workflow_ng_system.inc @@ -242,8 +242,15 @@ $$key = str_replace(array("\r", "\n"), '', $$key); } $to = isset($to) ? $to : $user->mail; - - if (drupal_mail('workflow_ng_action_mail', $to, $subject, $message, $from)) { + + $content_type = ($settings['mime'] == 'html') ? 'html' : 'plain'; + $headers = array( + 'MIME-Version' => '1.0', + 'Content-Type' => 'text/' . $content_type . '; charset=UTF-8; format=flowed', + 'Content-Transfer-Encoding' => '8Bit', + 'X-Mailer' => 'Drupal' + ); + if (drupal_mail('workflow_ng_action_mail', $to, $subject, $message, $from, $headers)) { watchdog('action', t('Sent email to %recipient', array('%recipient' => ($to == $user->mail) ? $user->name : $to)), WATCHDOG_NOTICE, ($to == $user->mail) ? theme('username', $user) : NULL); } else {