Added batch processing for sending email to users