Addressing backward compatibility by allowing alert_email to take either a string or array.