Added logging of all email messages. We're also logging errors.