how to add html/ccs element s inside drupal mail function I am developing function that send a email to user..,and i want to add some html.css styleing to the email how can i achive that folllwing is my code i tried

function zgcrons_mail ($key, &amp;$message, $params) {
  switch ($key) {
  case 'mymail':
    // Set headers etc
    $message['to'] = $usermail;
    $message['subject'] = t('Your Donation Statues ');
    $message['body'][] = '&lt;table width="100%" cellspacing="0" cellpadding="10" border="0"&gt;
    &lt;tbody&gt;
    &lt;tr&gt;
        &lt;td valign="middle" style="border-collapse:collapse;border:0" colspan="2"&gt;
            &lt;div style="color:#585858;font-family:Georgia;font-size:12px;line-height:125%;text-align:center"&gt;&amp;nbsp;
                &lt;a target="_blank" style="color:#ee3524;font-weight:bold;text-decoration:underline" href="http://www.twitter.com/ZealousGood/"&gt;follow on Twitter&lt;/a&gt; | 
                &lt;a target="_blank" style="color:#ee3524;font-weight:bold;text-decoration:underline" ref="http://www.facebook.com/ZealousGood2011"&gt;friend on Facebook&lt;/a&gt;
            &lt;/div&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td width="372" valign="top" style="border-collapse:collapse"&gt;
            &lt;div style="color:#585858;font-family:Georgia;font-size:12px;line-height:125%;text-align:center"&gt;
                &lt;em&gt;Copyright &amp;copy; 2012 Zealous Good, All rights reserved.&lt;/em&gt; 
                &lt;br&gt;
            &lt;/div&gt;
        &lt;/td&gt;
    &lt;/tr&gt;
    &lt;/tbody&gt;&lt;/table&gt;';
  break;
  }
}
drupal_mail('zgcrons', 'mymail',$usermail, $language, $params = array('username' =&gt;'John Potato'), $from = NULL, $send = TRUE);
Your way will work if you enable the html format for email in your website. By using http://drupal.org/project/htmlmail or http://drupal.org/project/mimemail that will help you format the email in html and choose which method that will use for sending email.