[#82298968] verify that rejection email is sent

Also some refactoring/cleanup – see commits.