added phpmailer code to send mails