Send a batch of emails based on certain criteria

I see that you found my mini-tutorial on creating a JSON object - did that get you what you need?