How the 'Test Email' button works