Add mail class and update basemodel save method.