Wednesday, November 09, 2011

Sending emails from local machine with Rails and Mac

From a long time ago I've ever had this problem, we can do this configuring our application file using smtp services like example "google", but it's really pretty easy.

To do this we only need follow two simple steps...

1. Configure your development enviroment file to use as delivery method :sendmail as follow

config.action_mailer.delivery_method = :sendmail

2. Start your smtp server that is already installed with Mac OSX Leopard or Lion in a console as follow

sudo postfix start

note: to see the log run "sudo tail -f /var/log/mail.log"

Too Easy!!!

No comments:

Post a Comment