add email support (needs testing) / fixes #9