added phpmailer library and now sending mail through gmail smtp server