Script to generate notification e-mails