I have a taxonomy field for "County" on the Article Content Type and also on User Profiles for the user to select during self registration. I want to send an email to users when new articles are added matching their County.
How do get the list of (and loop through) the user emails matching the county in the article?
Should I be using entity_insert(for node save) along with _mail(for the email template)?
Any help would be appreciated! :)