cleaned up email templating
detects when email is encrypted to the wrong key (fixes #14)