Re: Email section

Andrius Chamentauskas
Wed, 10 Mar 2010 21:52:37 -0000

Hi,

It was probably for old action mailer. You should use
config.action_mailer.smtp_settings

On Mar 10, 8:04 am, Manish Belsare
<li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>
wrote:
> Sir , I want to implement email section in ma web application..
> so i found the method ''server_setting'' for it...
> Following is the method:
>
> config.action_mailer.server_settings = {
>   :address => "smtp.gmail.com" ,
>   :port => 25,
>   :domain => "gmail.com" ,
>   :authentication => :login,
>   :user_name => "manish" ,
>   :password => "belsare"
>
> }
>
> sir but wen i restart my web server following errors are generated:
>
> [root@localhost ksmm]# script/server
> => Booting WEBrick
> => Rails 2.3.4 application starting
onhttp://0.0.0.0:3000/usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/rails/...
> Gem::Dependency#version_requirements is deprecated and will be removed
> on or after August 2010.  Use #requirement
>
/usr/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:402:in
> `method_missing'': undefined method `server_settings='' for
> ActionMailer::Base:Class (NoMethodError)
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:602:in
> `send''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:602:in
> `initialize_framework_settings''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:601:in
> `each''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:601:in
> `initialize_framework_settings''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:598:in
> `each''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:598:in
> `initialize_framework_settings''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:155:in
> `process''
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/initializer.rb:113:in
> `send''
>    ... 7 levels...
>   from /usr/lib/ruby/gems/1.8/gems/rails-2.3.4/lib/commands/server.rb:84
>   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `gem_original_require''
>   from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
> `require''
>   from script/server:3
>
> what shud i do 2 avoid this problem..
> Is it because of the version of rails?
> --
> Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.