Creating tmail object with ActionMailer

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 = “[email protected]
@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