Getting mailer function in