mail function debug
Mail data implementation