Receiving email via Rails app?

I need to be able to read email from an account on my Dreamhost server
using a Rails app. I want to accept data and images via email if
possible.

Can anyone point me to a tutorial or other resource that would help me
accomplish this?

Thanks,
Nathan

Rails Cookbook.

[email protected] wrote:

I need to be able to read email from an account on my Dreamhost server using a Rails app. I want to accept data and images via email if possible.

Can anyone point me to a tutorial or other resource that would help me accomplish this?

See

You’ll need to create a controller subclass of actionmailer and define a
receive method which handles the incoming email. Also consult the ruby
documentatino on the Tmail class.

You’ll need to set up an automated way to feed the email to the
actionmailer controller. Procmail works well for that if Dreamhost
provides it. run “man procmail” on dreamhost to see the documentation
on procmail.

The book Agile Web D. with Rails has a chapter on processing
email in rails.

Sincerely,
Jason