testing for mail function