Sending email to multiple recipients

  I have to send mail to multiple recipients. My table is named people
and has
first_name,last_name, email1 , email2, email3 for each person. i have
put people in various mailinglist .For example first mailinglist where
first_name is john or say the second mailing list contains people of
british origin.etc

the relation between mailinglist and people is many to many.
params[:ml] gives me the id of the mailing list to which mail is to be
In the controller i have

def sendmail
@mailinglists.each do |ml|
@people =

  @people.each do |p|

Perhaps this works.