added support for multiple mailers