multi-threaded email worker