Sending email to group based on view

Sending email to group based on view

I have an application with a form called "users" that contains a persons name, email, address and other information. I have many views of this form based upon different criteria.

I want to create another form called "message" that will allow me to type a message and send it to all of the email addresses listed in a particular view of the "user" form.

I know it can be done with the "send mail" function in scripting. But what I don't understand is how I can select which view of "users" I will be sending the email in the "message" form.