modern implementation of mail