# Mailer\_behaviour + Environments

**URL:** <https://www.ruby-forum.com/t/mailer-behaviour-environments/79300>\
**Category:** Radiant CMS\
**Created:** [December 14, 2006, 12:44am UTC](https://www.ruby-forum.com/t/mailer-behaviour-environments/79300 "2006-12-14T00:44:18Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![roa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/8e7dd6/32.png) [@roa](https://www.ruby-forum.com/u/roa)\
**Post date:** [December 14, 2006, 12:44am UTC](https://www.ruby-forum.com/t/mailer-behaviour-environments/79300/1 "2006-12-14T00:44:18Z")

</div>

Hi guys,

I’m having trouble getting the mailer\_behaviour to send under the  
production environment, when it works fine under the development  
environment. all it does is load the same mailer page again, instead  
of going to the thankyou page. it doesnt show any errors on the page  
or in the production logfile…

I checked the environment config files for both, and i cant see any  
differences that would stop it from working:

production.rb:

config.cache\_classes = true  
config.action\_controller.consider\_all\_requests\_local = false  
config.action\_controller.perform\_caching = true  
ResponseCache.defaults[:perform\_caching] = true  
config.action\_mailer.raise\_delivery\_errors = true  
ActionMailer::Base.raise\_delivery\_errors = true  
require RADIANT\_ROOT + ‘/app/models/page’

development.rb:

config.cache\_classes = false  
config.whiny\_nils = true  
config.breakpoint\_server = true  
config.action\_controller.consider\_all\_requests\_local = true  
config.action\_controller.perform\_caching = false  
ResponseCache.defaults[:perform\_caching] = true  
config.action\_mailer.raise\_delivery\_errors = true

any ideas what would stop it working between the two?

cheers,

michael
