Forum: Ruby on Rails Creating tmail object with ActionMailer

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
B001d870d1ce4044a84421c1836b562d?d=identicon&s=25 Richard (Guest)
on 2007-04-26 07:10

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,

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 = ""
     @recipients =
     @subject = params[:subject]
     @body[:recipient] =
     @body[:message] =  params[:message]

There is no problem sending this as Notifier.deliver_mail(dealer,

Does no one know why this may be?

Many thanks in advance

This topic is locked and can not be replied to.