When I try the example to receive emails using the new version of the Action
Mailer I get the following error. I''ve configured postfix to reroute
incoming emails to user ''mailer'' which in turn executes the
command
~{RAILS_APP_HOME}/script/runner ''Mailer.receive(STDIN.read)''.
I see the raw
incoming email in the rails log but with no error. However following error
gets sent back to the originator of the email (it looks like stdout).
Final-Recipient: rfc822;
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; Command died with status 1:
"/home/ninewishes/sites/community/script/runner
''Mailer.receive(STDIN.read)''". Command output:
/home/ninewishes/sites/community/script/runner:4:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.0.2/lib/active_support/dep
endencies.rb:183:in
`const_missing'': uninitialized constant Page (NameError) from
/home/ninewishes/sites/community/script/../config/..//app/models/mailer.rb:3
:in
`receive'' from
/usr/local/lib/ruby/gems/1.8/gems/actionmailer-0.8.0/lib/action_mailer/base.
rb:155:in
`receive'' from (eval):1
David Heinemeier Hansson
2005-Mar-23 12:57 UTC
Re: Action Mailer example - receiving emails
> I see the raw > incoming email in the rails log but with no error. However following > error > gets sent back to the originator of the email (it looks like stdout).The example was imagining that you already had Page, Email, and Attachment models in your domain. It''s not something that Rails ships with. -- David Heinemeier Hansson, http://www.basecamphq.com/ -- Web-based Project Management http://www.rubyonrails.org/ -- Web-application framework for Ruby http://www.loudthinking.com/ -- Broadcasting Brain