Vladimir Rybas wrote in post #986535:
> Post your mailer content here: http://pastie.org/
> As well as stack trace.
>
> "Stack level too deep" could mean you got an infinite loop. Maybe
> you're calling method inside itself.

I have a test method as:

def test
   Notifier.message().deliver
end

And a mailer as:


class Notifier < ActionMailer::Base
  default :from => "[email protected]"

  def message()
     mail(:to => '[email protected]', :subject => "Test")
  end

end

Btw, I can have any name I want on the mailer, right? I thought of 
having one mailer for the entire app.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to