Fixed emailing
Migrated to syslog