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. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 11 May 2008, at 17:45, Eric Mills 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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''" -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---