Unable to send mail through SMTP

Subscribe to Unable to send mail through SMTP 3 post(s), 2 voice(s)

 
Avatar supabok 2 post(s)

Hi all..
I’ve completed chapter 3 and am so close to moving on but unfortunatley I can’t
complete the signup process cuz i keep getting this error:

Net::SMTPUnknownError in AccountController#signup

C:/Ruby/lib/ruby/1.8/net/smtp.rb:679:in `check_response’
C:/Ruby/lib/ruby/1.8/net/smtp.rb:395:in `do_start’
C:/Ruby/lib/ruby/1.8/net/smtp.rb:377:in `start’
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:682:in `perform_delivery_smtp’
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `send
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:523:in `deliver!’
C:/Ruby/lib/ruby/gems/1.8/gems/actionmailer-2.3.4/lib/action_mailer/base.rb:395:in `method_missing’
E:/rails/monkey/app/models/user_observer.rb:3:in `after_create’
E:/rails/monkey/app/controllers/account_controller.rb:24:in `signup’

I’ve checked the code over many times and it seems to be fine :(
Can anyone shed some light on what i might be missing or doing wrong??
Thx
erick

 
Avatar EldonAlameda Administrator 216 post(s)

Have you tried setting action_mailer to user sendmail instead?

i.e. in environment.rb

  config.action_mailer.delivery_method = :sendmail

 
Avatar supabok 2 post(s)

Thx for your reply Eldon.

I did try setting the delivery_method to :sendmail but that didn’t work either.
It seems the problem was my server setup.
When i switched to using gmail as my server it worked fine!
Thx again.
erick