ver2.2 - mail function