added support for nullmailer