fix email notifications (issue #17)