# Problem with ActionMailer

**URL:** <https://www.ruby-forum.com/t/problem-with-actionmailer/75166>\
**Category:** Ruby\
**Created:** [November 7, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer/75166 "2006-11-07T22:22:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 7, 2006, 10:22pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer/75166/1 "2006-11-07T22:22:16Z")

</div>

Hi,

I am new to ROR so I’m having a hard time figuring out how to fix this  
problem. I am using

Ruby version 1.8.5 (i386-mswin32)  
RubyGems version 0.9.0  
Rails version 1.1.6  
Active Record version 1.14.4  
Action Pack version 1.12.5  
Action Web Service version 1.1.6  
Action Mailer version 1.2.5  
Active Support version 1.3.1  
Environment development  
Database adapter mysql

I am building an app that is supposted to email the user after the  
user registers for an event. However, I keep getting the following  
error messages:

uninitialized constant RegisrationMailer

RAILS\_ROOT: ./script/…/config/…  
Application Trace | Framework Trace | Full Trace

c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:123:in  
`const_missing' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in`const\_missing’  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active\_support/dependencies.rb:133:in  
`send' c:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in`const\_missing’  
#{RAILS\_ROOT}/app/controllers/event\_controller.rb:42:in  
`register\_for\_event’

This error occured while loading the following files:  
regisration\_mailer.rb

Request

Parameters: {“eventid”=\>“30”}

Show session dump

* * *

flash: !map:ActionController::Flash::FlashHash {}

Response  
Headers: {“cookie”=\>[], “Cache-Control”=\>“no-cache”}

Any help solving this would be appreciated.

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 7, 2006, 10:26pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer/75166/2 "2006-11-07T22:26:24Z")

</div>

acatejr wrote:

> uninitialized constant RegisrationMailer

Prepare to slap your forehead. You are missing a t. Between the s and r.  
See  
it yet?

---

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 7, 2006, 10:30pm UTC](https://www.ruby-forum.com/t/problem-with-actionmailer/75166/3 "2006-11-07T22:30:24Z")

</div>

Wow!!! Nice catch. I think slapping my forehead has produced an  
amazing hairline recession. I’m almost out.

Thanks!!!
