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?
on 2011-03-09 18:45
on 2011-03-09 19:12
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.
on 2011-03-10 12:54
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@example.com" def message() mail(:to => 'firstname.lastname@example.org', :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.
on 2011-03-10 13:37
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).