views:

78

answers:

2

hi...is it possible to configure mail.rb (in RESTFUL authentication) to test email activation locally? the default file is

ActionMailer::Base.delivery_method = :smtp ActionMailer::Base.smtp_settings = { :address => "mail.example-domain.com", :port => 25, :domain => "www.example-domain.com", :authentication => :login, :user_name => "[email protected]", :password => "secret" }

thanks

+1  A: 

This might help:

Just make a yaml file with all the config

Devenv
thanx. i used this http://avnetlabs.com/rails/restful-authentication-with-rails-2 actually. but it's just like what you said.
pixeltocode
A: 

I really like using MailTrap -- a local SMTP server that knows Just Enough about SMTP to listen to ActionMailer requests... and write them to a file where you can look at them later.

RyanWilcox