: SMTP server to deliver mail to Rails app, how? all, this is my first question and I hope I chose the right place to post it. Here's what I need help with: I've been looking for this all
all, this is my first question and I hope I chose the right place to post it. Here's what I need help with:
I've been looking for this all day and I'm having a hard time finding a SMTP mail server that would fit the following criteria:
lightweight, does one thing and does it good
is able to route and deliver local mail to a Rails application
The second point could be accomplished in any number of ways. I'm running a VPS, so I have full freedom in how to implement this. It could, for example, put messages straight in the db, pipe them to a helper program that would then process them accordingly or also save messages in a mbox file and run a script after every received message.
I'm building a small site so the traffic is not going to be a problem. If there are alternative ways to deliver messages to a Rails app, I'd gladly hear about them. Thank you.
EDIT:
After long searching, I think I've found what I was looking for.
Exim is a mail server that can deliver local mail to pipes. Also, Rails 3 and ActionMailer can make it really easy to process the incoming mail. More info here:
www.exim.org/exim-html-current/doc/html/spec_html/ch29.html http://guides.rubyonrails.org/action_mailer_basics.html#receiving-emails
More posts by @Harper822
1 Comments
Sorted by latest first Latest Oldest Best
I'd just set up an IMAP or POP3 server and have the rails app retrieve the mail that way. Ruby most likely has decent library support (either in the standard library, the rails framework or another third party library) for both protocols and it will require very little work on your part to get working.
I'm not a Ruby guy but I do know just about every single programming language out there has good support for these. Plus it also has the advantage that you can test the email system out easily with a standard email client.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.