I have rails space application running on my local. I have issues in sending emails on my application.
I have configured my environment.rb as follows :
config.action_mailer.raise_delivery_errors = true config.action_mailer.default_charset = "utf-8" ActionMailer::Base.smtp_settings = {:address =>"smtp.mail.yahoo.co.in", :port => 587, :domain => "yahoo.com", :authentication => :login, :user_name => "*******@yahoo.com", :password => '******'}
But when I run the application I am getting the following error : -
Errno::EBADF (Bad file descriptor - connect(2)): C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/protocol.rb:207:in `initialize' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/protocol.rb:207:in `new' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/protocol.rb:207:in `old_open' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/protocol.rb:207:in `old_open' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/smtp.rb:393:in `do_start' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/smtp.rb:378:in `start' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/net/smtp.rb:316:in `start' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ actionmailer-2.0.2/lib/action_mailer/base.rb:586:in `perform_delivery_smtp' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ actionmailer-2.0.2/lib/action_mailer/base.rb:469:in `__send__' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ actionmailer-2.0.2/lib/action_mailer/base.rb:469:in `deliver!' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ actionmailer-2.0.2/lib/action_mailer/base.rb:352:in `method_missing' /app/controllers/email_controller.rb:9:in `remind' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/base.rb:1158:in `send' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/base.rb:1158:in `perform_action_without_filters
C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/filters.rb:697:in `call_filters' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/filters.rb:689:in `perform_action_without_bench ark' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/benchmarking.rb:68:in `perform_action_without_r scue' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/1.8/benchmark.rb:293:in `measure' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/benchmarking.rb:68:in `perform_action_without_r scue' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/rescue.rb:199:in `perform_action_without_cachin ' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/caching.rb:678:in `perform_action' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activerecord-2.0.2/lib/active_record/connection_adapters/abstract/ query_cache.rb:33:in `cache' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activerecord-2.0.2/lib/active_record/query_cache.rb:8:in `cache' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/caching.rb:677:in `perform_action' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/base.rb:524:in `send' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/base.rb:524:in `process_without_filters' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/filters.rb:685:in `process_without_session_mana ement_support' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/session_management.rb:123:in `process' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/base.rb:388:in `process' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/dispatcher.rb:171:in `handle_request' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/dispatcher.rb:115:in `dispatch' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/dispatcher.rb:126:in `dispatch_cgi' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/actionpack-2.0.2/ lib/action_controller/dispatcher.rb:9:in `dispatch' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/bin/../lib/mongrel/rails.rb:76:in `process' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/bin/../lib/mongrel/rails.rb:74:in `synchronize' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/bin/../lib/mongrel/rails.rb:74:in `process' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:159:in `process_client' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:158:in `each' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:158:in `process_client' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:285:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:285:in `initialize' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:285:in `new' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:285:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:268:in `initialize' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:268:in `new' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel.rb:268:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel/configurator.rb:282:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel/configurator.rb:281:in `each' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel/configurator.rb:281:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/bin/mongrel_rails:128:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/lib/mongrel/command.rb:212:in `run' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/mongrel-1.1.4-x86- mswin32/bin/mongrel_rails:281 C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:489:in `load' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ commands/servers/mongrel.rb:64 C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:342:in `new_constants_in' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/ activesupport-2.0.2/lib/active_support/dependencies.rb:496:in `require' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/ commands/server.rb:39 C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `gem_original_require' C:/PROGRA~1/BITNAM~1/ruby/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require' script/server:3
Could any body help me regarding this issue. In case you require any further information please do inform me.
Thank you.