Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit 77c2f6f

Browse files
authored
Merge pull request #20 from aakb/master
SUPPORT-1177: Added module for allowing html mails
2 parents a5c1893 + 3373da5 commit 77c2f6f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name = Osto html mails
2+
description = Set default mail header to html mails
3+
core = 7.x
4+
package = ITK
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
/**
3+
* Implements hook_mail_alter().
4+
*
5+
* Change mail header for all html mails.
6+
*/
7+
function osto_html_mails_mail_alter(&$message) {
8+
$message['headers']['Content-Type'] = 'text/html; charset=UTF-8; format=flowed; delsp=yes';
9+
}

0 commit comments

Comments
 (0)