Create Mailer.pm

This is a revised version of Bugzilla Mailer.pm module. I modified it because bugzilla can't send mail by using SMTP in my working situation.
I add some lines in this module. Most of them are in line 166-255.