I'm trying to send an HTML Mail using the Simple Mail interface, and wanted to force the content-type to be text/html, but this value is overridden by function messaging_mail_headers.

I have managed to get around this by implementing hook_mail_alter, but I shouldn't have to do this.

Comments

jose reyero’s picture

Status: Active » Fixed

You can override it using _message_alter() and setting the headers in $message->params['mail']['headers']

I hope this will do, let me know if you need anything else

Status: Fixed » Closed (fixed)

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