Don't trust email server response. Fixes #1770.
Merge pull request #1771 from michael-e/fix-email-error-issue

Don't trust email server response (to validate as XML). Fixes #1770.