mailobj to mail