Nathan Leach
2007-Mar-30 15:35 UTC
How to Create Data in Rails App using Inbound Email including Attachments?
I am trying to create a feature within my application to receive product data including an image attachment via inbound email. Can someone point me to a tutorial or other document online that will help out with this. I have started hammering at Google, but was hoping someone could provide a link. 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-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 -~----------~----~----~----~------~----~------~--~---
Scott Willson
2007-Apr-05 03:17 UTC
Re: How to Create Data in Rails App using Inbound Email including Attachments?
On Mar 30, 2007, at 8:35 AM, Nathan Leach wrote:> I am trying to create a feature within my application to receive > product data including an image attachment via inbound email. > > Can someone point me to a tutorial or other document online that will > help out with this. I have started hammering at Google, but was > hoping someone could provide a link.Nathan, Basically, you can have your email server (say, Postfix) "deliver" the email message to a command like: /srv/www/rails/current/script/runner ImageMailer.receive(STDIN.read) Looks like the TMail library that ActionMailer uses has an API for attachments, so you''ll want to look there, too. I have a partially-relevant example for Mailman here: http://butlerpress.com/2006/01/23/hello-world/ Note that since this fires up a new Rails process for every email, it''s not very scaleable. Scott --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---