undeprecate mail plugin