Script that responds to emails