Community & Support

How to set mail type from text to html... m using drupal_mail() function.

M using drupal_mail() function to send email. How can I set the email type from text to html?

Comments

found a solution for this?

found a solution for this?

html mail

For Drupal 6, you might try the Mail System module, which is mostly a backport the Drupal-7 functions that are missing in Drupal-6.

To be recognized as HTML, an email message body must be MIME formatted, which is not something that the drupal_mail() function handles.

Both Mime Mail and HTML Mail have this capability, and are available for Drupal-6 and Drupal-7.

Good. — Fast. — Cheap.
(Pick any two.)

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