I am running a Craigs list style notice board, for which I need to create anonymous email addresses (e.g. 123fghuii@craigslist.org) with forwarding for people who create posts.
How would I go about doing this in Rails 3? Please be very specific and if possible, detailed, in your response, as I am new to Rails.
Many thanks,
Faisal
I have implemented this and had a look at a few solutions. By far the most simple I found was http://cloudmailin.com
Cloudmailin converts your email to HTTP POSTs to a callback url that you specify. From that, you can pick out the sender and the message.
There are a few things that make it really useful. First of all, you can specify a wildcard MX entry, which will send all of your emails to the callback url that you specify, meaning that you can perform different actions depending on the email address that is emailed to. The second thing I found really useful is that there is an option to strip out your attachments and store them in an S3 bucket. A combination of these two making dealing with emails that have attachments far easier than implementing your own mail server.
Please note that there is a small cost involved, you can see the plans at http://cloudmailin.com/plans EDIT – There is a free plan available but it doesn’t include the things mentioned above
One other advantage of this is that you are not tied into the rails stack (don’t get me wrong, I love rails), because it is an HTTP request you can very simply implement the same callback url in any technology stack.