Added a mail function to use