Ajax Mail adapter fix