Added support for sending mail from Gmail's SMTP server.

Added new global variables to allow custom SMTP settings.
Modified the sendMail function to use PHPMailer.
Converted mail-templates into HTML format.
Added the required libraies for PHPMailer.