add template mail send code recovery pass