*8996* Porting stats fixes

oh, this is here to allow dependency injection when unit testing this class. So I can inject a mocked mail object that will not try to really send nothing.