mail functionality for all vendors