Declare all the required properties under hook_mail().
Call drupal_mail() with argument for actually sending the email
However in the scenario like bigger & complex site the above steps won’t be enough. But Drupal Support Service gives us a Flexibility to customize email sending process, before that it’s necessary to know how stuff works behind the scenes first. In this article I’ll show you how you can customize and extend the Drupal Support Service mail system to fulfill your needs.
While sending an email drupal_mail() function uses system class for…
Source: New feed