List Info

Thread: Receiving email via Rails app?




Receiving email via Rails app?
country flaguser name
United States
2007-03-29 21:34:00
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


--~--~---------~--~----~------------~-------~--~----~
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Receiving email via Rails app?
country flaguser name
United States
2007-03-29 21:29:03
Rails Cookbook.


--~--~---------~--~----~------------~-------~--~----~
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: Receiving email via Rails app?
country flaguser name
United States
2007-03-31 12:55:08
nathanoleachgmail.com 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
http://api.rubyonrails.org/classes/ActionMailer/Base.ht
ml

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 Development with Rails_ has a chapter
on processing 
email in rails.

Sincerely,
Jason

--~--~---------~--~----~------------~-------~--~----~
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-talkgooglegroups.com
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribegooglegroups.com
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )