added mailing capablity with 3rd party code