Bens Blog

Sometimes you just need to write things

Uninitialized ActionMailer

While migrating a Ruby on Rails application to a new server I found my application throwing an unitialized ActionMailer error on server start.

./script/../config/../config/environment.rb:29:NameError

uninitialized constant ActionMailer

I thought this was strange – as the ActionMailer gem was installed fine.

The original system was running fcgi through Apache and on this server I was using Mongrel server.

I found a solution here:

http://highearthorbit.com/uninitialized-constant-actionmailer/

Turns out the ActionMailer server settings need to be outside the block

Rails::Initializer.run do |config|

..it fixed the problem for me.

1 comment

1 Comment so far

  1. GLEN July 4th, 2010 2:40 pm


    PillSpot.org. Canadian Health&Care.No prescription online pharmacy.Best quality drugs.Special Internet Prices. No prescription pills. Buy drugs online

    Buy:Levitra.Propecia.VPXL.Viagra Super Active+.Tramadol.Viagra Professional.Cialis.Soma.Viagra Soft Tabs.Cialis Professional.Maxaman.Viagra Super Force.Cialis Soft Tabs.Super Active ED Pack.Zithromax.Viagra.Cialis Super Active+….

Leave a reply

You must be logged in to post a comment.