send email on configurable conditions, closes #19