search for: j_doe

Displaying 1 result from an estimated 1 matches for "j_doe".

Did you mean: doe
2008 May 03
2
ActionMailer Multiple recipients
...er to send mails. I want to send mails to multiple recipients which I get from a view. Here is the controller code. def groupcorres user = User.find(session[:user_id]) address = Array.new lines = Array.new args = params[:id].to_s # params[:id] is an array of user screen name. ex: j_doe, d_john lines = args.split(",") for line in lines recipient = User.find_by_screen_name(line) email = recipient.email.to_s + "," address << email end if param_posted?(:message) @message = Message.new(params[:message]) if @message.va...