email script partially working - also needs cron