Set up task-queueing for email
Refine email task queue