Actionmailer environment

I’m trying to receive emails into my rails app. The using this method:
http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer

It appears to be passing the email in using the development environment
instead of production. How can I make it use production? The rest of
my app is using production as specified in my mongrel configuration.

Worked great, thanks.

Here is the syntax from my /etc/aliases file:
email_alias: “| /usr/bin/ruby /path/to/app/script/runner -e production
‘IncomingMailProductRequest.receive STDIN.read’”

On 11 May 2008, at 17:45, Eric M. wrote:

I’m trying to receive emails into my rails app. The using this
method:
http://wiki.rubyonrails.org/rails/pages/HowToReceiveEmailsWithActionMailer

It appears to be passing the email in using the development
environment
instead of production. How can I make it use production? The rest of
my app is using production as specified in my mongrel configuration.

script/runner takes a -e option which specifies the environment to use.

Fred


My ramblings: http://www.spacevatican.org