mail class has been replaced to new version