# Stack level too deep

**URL:** <https://discuss.rubyonrails.org/t/stack-level-too-deep/35830>\
**Category:** rubyonrails-talk\
**Created:** [October 29, 2008, 10:02am UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/35830 "2008-10-29T10:02:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [October 29, 2008, 10:02am UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/35830/1 "2008-10-29T10:02:48Z")

</div>

Hi,

i have worked on one website using Ruby On Rails.i have installed acts\_as\_attachment for authenticate the user.after that i have installed login\_engine plugin to try out some mail sending function.but i did not get that function worked.So i have just removed that login\_engine plugin.and try out mail sending using acton\_mailer gem.But while i am running that application to send mail for forgot password fuction.

It shows the error as

stack level too deep

RAILS\_ROOT: E:/Anovaproject/anova\_tues Application Trace | Framework Trace | Full Trace

C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action\_mailer/helpers.rb:92:in `inherited_without_helper' C:/ruby/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/helpers.rb:92:in `inherited' app/models/mymailertest.rb:1 app/controllers/account\_controller.rb:261:in `forgot\_password'

for this i have also reinstalled login\_engine plugin.Cannot recover the error.Please any one can help me.How can i remove this error.any idea.

---

<div class="post-metadata">

**Author:** ![alexey](https://avatars.discourse-cdn.com/v4/letter/a/47e85d/32.png) [@alexey](https://discuss.rubyonrails.org/u/alexey)\
**Post date:** [October 29, 2008, 2:55pm UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/35830/2 "2008-10-29T14:55:42Z")

</div>

This error can happen on endless loop or never ending recursive function, CAn u show app/models/mymailertest.rb content and method on app/ controllers/account\_controller.rb:261 ?

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [October 30, 2008, 8:40am UTC](https://discuss.rubyonrails.org/t/stack-level-too-deep/35830/3 "2008-10-30T08:40:29Z")

</div>

alexey.Creopolis wrote:

> This error can happen on endless loop or never ending recursive function, CAn u show app/models/mymailertest.rb content and method on app/ controllers/account\_controller.rb:261 ?
> 
> On Oct 29, 12:02�pm, Babysudha Subbiah \<rails-mailing-l...@andreas-

Hi alexey,

&nbsp;&nbsp;&nbsp;&nbsp;Thanks for your reply.This is my

app/controllers/account\_controller.rb:261?

&nbsp;&nbsp;&nbsp;&nbsp;Mymailertest.deliver\_welcome(recipient,subject,message)

app/models/mymailertest.rb

def welcome(recipient, subject, message, sent\_at = Time.now) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@subject = subject &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@recipients = recipient &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@from = '' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@sent\_on = sent\_at &nbsp;&nbsp;&nbsp;&nbsp;@body["title"] = 'This is title' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@body["email"] = '' &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@body["message"] = message &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;@headers = {} &nbsp;&nbsp;&nbsp;end

calling and called function.
