1
是否可以配置mail.rb(在RESTFUL認證中)在本地測試電子郵件激活?默認的文件是爲本地主機測試配置mail.rb
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"
}
感謝
thanx。我實際上使用了這個http://avnetlabs.com/rails/restful-authentication-with-rails-2。但它就像你所說的。 – pixeltocode 2010-01-30 02:05:48