machine reporting via email

see script comments