Send Mail function for mailer