Hello, I am newbie to rails, I am wanting to send a mass email to an email list on my database, so I am creating a tmail object using ActionMailer then sending the email using Net::SMTP. I could send email fine using the same set up through ActionMailer (But when I get to between 500-700 emails I get timed out and it is SSSSlow) But when I try to create a Tmail object it is giving me argument errors, saying ArgumentError (wrong number of arguments (0 for 1)): I am calling a class below with Notifier.create_mail(dealer, params) class Notifier < ActionMailer::Base def mail(dealer, params) @from = "richard-P6ygcmwcJjDQT0dZR+AlfA@public.gmane.org" @recipients = dealer.email @subject = params[:subject] @body[:recipient] = dealer.name @body[:message] = params[:message] end end There is no problem sending this as Notifier.deliver_mail(dealer, params) Does no one know why this may be? Many thanks in advance Richard -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---