Threading the email notification process