modified sendNotification function to sent notification to list of recipients