# Mail problem Please help

**URL:** <https://www.ruby-forum.com/t/mail-problem-please-help/132683>\
**Category:** Rails\
**Created:** [March 23, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/mail-problem-please-help/132683 "2008-03-23T12:45:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [March 23, 2008, 12:45pm UTC](https://www.ruby-forum.com/t/mail-problem-please-help/132683/1 "2008-03-23T12:45:18Z")

</div>

Hi,  
I am trying to use ar\_mailer to send mail. But when i start ar\_sendmail  
i get the following error:

Unhandled exception uninitialized constant  
ActionMailer::ARMailer(NameError):  
c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/de  
pendencies.rb:263:in `load\_missing\_constant’  
Please Help.  
Thank you.

---

<div class="post-metadata">

**Author:** ![ankit2584](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/51bf81/32.png) [@ankit2584](https://www.ruby-forum.com/u/ankit2584)\
**Post date:** [April 8, 2008, 8:51am UTC](https://www.ruby-forum.com/t/mail-problem-please-help/132683/2 "2008-04-08T08:51:34Z")

</div>

Ank Ag wrote:

> Hi,  
> I am trying to use ar\_mailer to send mail. But when i start ar\_sendmail  
> i get the following error:
> 
> Unhandled exception uninitialized constant  
> ActionMailer::ARMailer(NameError):  
> c:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active\_support/de  
> pendencies.rb:263:in `load\_missing\_constant’  
> Please Help.  
> Thank you.

1. check your /config/environment.rb and make sure u have written at the  
bottom line → require ‘action\_mailer/ar\_mailer’

2. Ensure that you have written it at the bottom line of  
/config/environment/development.rb → :  
config.action\_mailer.raise\_delivery\_errors = false  
config.action\_mailer.delivery\_method = :activerecord

3. if still happened, re-generate your mailer → script/mailer  
bla…bla…bla, please make sure the old folder and file are already  
renamed to another folder so it will not replace your old files.

4. re install your gem of ar\_mailer

Enjoy,  
Reinhart  
{+\_+} [http://teapoci.blogspot.com](http://teapoci.blogspot.com)
