views:

126

answers:

1

Hi,

I'm still trying to make this work. Previously, ever since I tried to send an email I used to see a "Email sent" log in the Output window, but after I followed some steps on the web, setting up a smtp_tls.rb file at initializers folder, everything went wrong. Now I don't even see that "email sent" log, and once I delete that file I added, I keep getting the same error:

uninitialized constant OpenSSL::SSL

This line is part of the deleted file smtp_tls.rb. I've already closed the app, rebooted the computer, but still the same. It looks like somewhere that file is being requested, as the error is produced on one of its lines(according to the trace), but I deleted it!!

Please, any help on this will be appreciated.

Thanks, Brian

EDIT

This is one part of the trace:

NameError (uninitialized constant OpenSSL::SSL): C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:440:in load_missing_constant' C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:80:inconst_missing_with_dependencies' config/initializers/smtp_tls.rb:20:in do_start' C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/1.8/net/smtp.rb:378:instart' C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:681:in perform_delivery_smtp' C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:523:indeliver!' C:/Program Files (x86)/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/action_mailer/base.rb:395:in method_missing' app/models/user.rb:75:inforgot_password' app/controllers/users_controller.rb:56:in `forgot_password'

+1  A: 

Check out this similar question.

khelll
Thanks, anyway, my problem now is not only that the email is not sent, but it throws me an error due to some line that does not even exist anymore! And that's in the smtp_tls.rb file that I deleted.
Brian Roisentul
Did you restart the application? Be sure to kill and start the application and refresh the page before trying to run the action again.
Lukas
could you also show the contents of the initializer file as well as the mailer action that gets called?
Lukas