Take a look at the SELECT statement that retrieves the contacts:
SELECT CONTACT_EMAIL from CONTACTS;
There is no WHERE clause there.
Also, I would add a DISTINCT so you don't send the e-mail to the same person twice if they belong to two different groups.
SELECT distinct CONTACT_EMAIL FROM CONTACTS WHERE GROUP_ID != -- THE GROUP to NOT send to
Thank you for your reply.