Logged invalid email types as warnings

- Added test
Merge pull request #1415 from fauvel/issue-1415

 Type `XXX` not configured for class `CM_Mail`