create test mail function