views:

121

answers:

3

I'm developing rails on localhost and wondering what is the simplest way, in terms of workflow, of building email functionality in.

So I figure:

  1. Get mail working on localhost.
  2. Then when I deploy on a production server just change the smtp settings.

Is this a reasonable approach? Can you actually send email from localhost? Know of any tutorials on email in rails?

A: 

E-mail/SMTP should work fine from any host connected to the internet with access to a DNS server.

I don't see anything wrong with your approach.

tbs
A: 

agree. Using SMTP is a quick and easy way to get mail up and running on your localhost dev box.

Jason
A: 

I recently faced the same problem. After some googling I found some solutions. It is on my blog. http://babygnu.blogspot.com/2009/10/deleviring-mails-from-rails-app-to.html

Waseem
your using postfix because you're on Ubunto. Do I need anything if I'm on windows?
conspirisi
See if any of the following help you.* http://andrewbevitt.com/2007/06/28/postfix-under-windows/* http://www.indigostar.com/sendmail.htmYou should switch to Linux or OSX for development.
Waseem