By comfort_drupal on
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.
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
Hey, here is the link to a
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
If you use Drupal 5. you
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.