Fixed typos from last commit
Display correct message when no systems have updates available
Stop script if an error occurs
Date from database must be converted before comparison
Fixed parentheses placement typo
Print an error if the email couldn't be sent
Add more config items for email