Garrett Murray
2006-Aug-24 18:12 UTC
[Rails] Receiving email w/ rails... configuration on multiple hosts
Okay, so I have a weblogging app (SimpleLog, http://simplelog.net). I want to add a feature where the user can email new posts to the app and it will post them. The problem is, many people use this in many different environments, setups, hosts, etc. Does anyone know of a somewhat common way to get this feature working? I don''t mind if only certain users can do this, but I would prefer to make it as easy as is possible for people to set up. Any help is appreciated. Thanks, g -- 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 -~----------~----~----~----~------~----~------~--~---
Jeremy Wells
2006-Aug-25 15:40 UTC
Re: Receiving email w/ rails... configuration on multiple hosts
well you could write a program to fetch from a pop3 or imap account and let the user enter in the server details and username and password for the email account. The problem is that your program will need to run outside of the rails environment - or at least be activated from outside, because you probably want it to poll the account rather than just check it when someone goes on the website. Ruby has libraries Net::IMAP and Net::POP, which provide all the commands for retriving from accounts, but obviously you still need to write an admin console so the user can tell the application where to get things from. Garrett Murray wrote:> Okay, so I have a weblogging app (SimpleLog, http://simplelog.net). I > want to add a feature where the user can email new posts to the app and > it will post them. > > The problem is, many people use this in many different environments, > setups, hosts, etc. > > Does anyone know of a somewhat common way to get this feature working? I > don''t mind if only certain users can do this, but I would prefer to make > it as easy as is possible for people to set up. > > Any help is appreciated. > > Thanks, > g > >-- *Jeremy Wells* Serval Systems Ltd. www.servalsystems.co.uk <http://www.servalsystems.co.uk> Tel: 01342 331940 Fax: 01342 331950 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---