This can be done using Universal email. You would just fill in the information the way you want it sent in the Universal Email wizard. Then you would apply the behavior once for each email you want sent. For the code added for each of the server behaviors, you would want to check if that is part of the search results and then determine if you want that behavior to be executed or not.