Problem with mailer

I created a new mailer called Notifier. When I try that I get
“SystemStackError (stack level too deep):”. Any ideas of what could be
wrong?

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.

Vladimir R. 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.

Got it working. I tried with a new mailer, using the same name as a
controller and model, and I changed :enable_starttls_auto => true to
false (as I got an ssl cert error).