mail plugin ignores errors