reimplementing multiprocessing for sending emails