modified from mail info