Bug 814647 - Fixed small issues with automatic emails, added an important unit test.
Merge pull request #1060 from AdrianGaudebert/814647-email-every-user

Bug 814647 - Fixed small issues with automatic emails, added an importan...