How to set header and footer for any drupal_mail messsage? I am working with drupal 7 site.

I would like to know how to create email template for any email sent from drupal system?

Is there any hook or template should I implement in my custom module or override to make it beautiful like any newsletter emails are received.

I want following emails should be theming.


User Activation User 
Password reset
Comment Notification etc...


Email template should looks like

&lt;header&gt;
Dear &lt;User&gt;
&lt;Message Body goes here&gt;
Thanks
&lt;footer&gt;
Take a look at hook_mail.  All emails from the system "should" go through that.  You can alter the $message['body'] to add your header and footer.  If you only want to do this for certain emails, you can use an IF condition on the $key.

Edit: I think I pointed you to the wrong hook.  You probably want to use hook_mail_alter to change every email that Drupal sends.