use test mail delivery method in test environment.