Sending email to multiple recipients

Hello,   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 sent. In the controller i have

def sendmail @mailinglists=Mailinglist.find_all_by_id(params[:ml]) @mailinglists.each do |ml| @people = Person .find (:all ,:include =>:mailinglists,:conditions=>['mailinglist_id=?',"#{params[:ml]}"]) UserMailer.deliver_send_mail(@people)

  @people.each do |p|     UserMailer.deliver_send_mail(p)   end

Perhaps this works.