Another way to go might be to pull the emails via pop/imap from your
mail infrastructure.
Finally there is http://dbmail.org/ which takes the emails and puts
them in a database for you. You can just tap right into the database.
> --
> You received this message because you are subscribed to the Google Groups
> "WellRailed" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/wellrailed/-/tItIv4eqjScJ.
> To post to this group, send email to wellr...@googlegroups.com.
> To unsubscribe from this group, send email to
> wellrailed+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/wellrailed?hl=en.
any suggestions for the best way to receive email in a Rails 3.1 app? Gem or external service making API calls??
--nahum--
You received this message because you are subscribed to the Google Groups "WellRailed" group.
To view this discussion on the web visit https://groups.google.com/d/msg/wellrailed/-/tItIv4eqjScJ.
To post to this group, send email to wellr...@googlegroups.com.
To unsubscribe from this group, send email to wellrailed+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wellrailed?hl=en.
+1 for this kind of approach. I'd personally configure the mail server
to deliver specific recipient messages directly to required script
rather than using .forward, providing you have that level of control.
This usually gives you a little more flexibility, and allows you to
control the delivery response based on the return code of your script
(exit 0 for message accepted, exit 1 for 'temporary failure, try again
later', exit 2 for 'permanent delivery failure'). This may or may not
be useful for your case.
How you do it depends on the mail server software.
This approach is nice and easy to test because you can just pipe
messages on stdin to your script.
Malc