Add param for custom mail class.