method `tlsconnect' not defined in Net::SMTP

A

Awijeet Aw

Hi.
when I try to do script/server I am getting this error.
Rails 2.3.8 application starting on http://0.0.0.0:3000
/opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail/core_extensions/smtp.rb:7:in
`remove_method': method `tlsconnect' not defined in Net::SMTP
(NameError)
from
/opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail/core_extensions/smtp.rb:7
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from /opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail.rb:36
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/rails/gem_dependency.rb:215:in
`load'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in
`load_gems'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in
`each'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:307:in
`load_gems'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:164:in
`process'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
`send'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/initializer.rb:113:in
`run'
from /Users/awijeet/railsaps/loc/config/environment.rb:5
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:521:in
`new_constants_in'
from
/opt/local/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:156:in
`require'
from
/opt/local/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/commands/server.rb:84
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`gem_original_require'
from
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in
`require'
from script/server:3


Can any one help me please to solve the issue.

Thanks Avijit
 
B

Brian Candler

Awijeet Aw wrote in post #972165:
/opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail/core_extensions/smtp.rb:7:in
`remove_method': method `tlsconnect' not defined in Net::SMTP
(NameError)
from
/opt/local/lib/ruby/gems/1.8/gems/mail-2.2.13/lib/mail/core_extensions/smtp.rb:7

Looks like a bug in the 'mail' gem to me.

I suggest you find the project and raise a ticket, or contact the author
directly. Describe exactly what O/S and version of ruby you're running.

Preferably include the smallest possible program which reproduces the
bug. It might be as simple as:

require 'rubygems'
require 'active_support'
require 'mail'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,056
Messages
2,570,439
Members
47,101
Latest member
DoloresHol

Latest Threads

Top