From: Eric Hodel Date: 2009-09-04T07:12:58+09:00 Subject: Re: smtp_tls 1.0.1 Released On Sep 3, 2009, at 04:33, Marcelo David wrote: > Marcelo David wrote: >> Eric Hodel wrote: >>> On Sep 2, 2009, at 12:24, Marcelo David wrote: >>>>> server.send_message message, from, to >>>>> end >>>> >>>> Hi, >>>> I did the example and got this error: >>>> >>>> uninitialized constant Net::SMTP::OpenSSL >>>> >>>> the error occurs when run smtp.enable_starttls >>>> >>>> Same hit? >>> >>> Do you have openssl? >>> >>> $ ruby -ropenssl -e 'puts "I have OpenSSL!"' >>> I have OpenSSL! >> >> Thanks Eric. >> >> I got "no such file to load -- openssl (LoadError)" >> >> Then I used (on ubuntu 9.4): >> >> sudo apt-get install libopenssl-ruby libssl0.9.8 >> >> And Not resolved. >> >> I'm using ruby 1.9.1p0. > > Eric, > > I removed ruby 1.9 and used apt-get to install 1.8.7 with libs: > > $ sudo apt-get install ruby irb rdoc rake rubygems libopenssl-ruby1.8 > libssl0.9.8 You're probably not using the smtp_tls gem then: $ gem list -dr smtp_tls *** REMOTE GEMS *** smtp_tls (1.0.3) Authors: Eric Hodel, Kyle Maxwell Rubyforge: http://rubyforge.org/projects/seattlerb Homepage: http://seattlerb.rubyforge.org/smtp_tls Provides SMTP STARTTLS support for Ruby 1.8.6 (built-in for 1.8.7+) ^^^^^^^^^^^^^^^^^^^^^