just one small thing, in the test environment we still want it to use the ":test" delivery method just add a condition here that the environment is not the test environment.