i tried,

$params['headers'] = 'Content-type: text/html';
$params['headers'] = array('Content-type'=>'text/html');
$params['Content-type'] = 'text/html');

This is not working at all.

Comments

JoshuaKissoon’s picture

Hey, here is the link to a tutorial i did on sending mail using drupal_mail and hook_mail, it also includes how to send HTML and Plain text mails: Sending HTML and Plain text Mail with Drupal 6. Hope this helps

vasi1186’s picture

If you use Drupal 5. you should just add

$headers['Content-Type'] = 'text/html; charset=utf-8'

to the headers array: http://api.drupal.org/api/drupal/includes--common.inc/function/drupal_ma...

If you want to use html for all your mails, you can implement the hook_mail_alter and alter the headers: http://api.drupal.org/api/drupal/developer--hooks--core.php/function/hoo...

For Drupal 6 and above, you may want to use the htmlmail module: http://drupal.org/project/htmlmail

Vasi.