Added the functionality to send to a group of emails