Caros, bom dia,
Estou tentando enviar email, e nao estou conseguindo.
Tenho instalado o gem action_mailer_tls.
no production está configurado da seguinte forma:
require "smtp_tls"
ActionMailer::Base.smtp_settings = {
:address => 'smtp.gmail.com',
:port => 465,
:domain => 'gmail.com',
:authentication => :plain,
:user_name => 'usuario@gmail.com', # i think it should work without the
:password => 'senha',
:tls => true
}
O erro estoura no arquivo :
C:\Ruby187\lib\ruby\1.8\net\smtp.rb
def recv_response
buf = ''
while true
line = @socket.readline ##ERRO estoura aqui, ao tentar ler a linha <<<<<<<<<<<<===============
buf << line << "\n"
break unless line[3,1] == '-' # "210-PIPELINING"
end
Response.parse(buf)
end
Exception:
Timeout::Error (execution expired):
C:/Ruby187/lib/ruby/1.8/timeout.rb:64:in `rbuf_fill'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
C:/Ruby187/lib/ruby/1.8/net/protocol.rb:126:in `readline'
C:/Ruby187/lib/ruby/1.8/net/smtp.rb:923:in `recv_response'
C:/Ruby187/lib/ruby/gems/1.8/gems/action_mailer_tls-1.1.3/lib/smtp_tls.rb:14:in `do_start'
C:/Ruby187/lib/ruby/1.8/net/smtp.rb:933:in `critical'
C:/Ruby187/lib/ruby/gems/1.8/gems/action_mailer_tls-1.1.3/lib/smtp_tls.rb:14:in `do_start'
C:/Ruby187/lib/ruby/1.8/net/smtp.rb:525:in `start'
C:/Ruby187/lib/ruby/1.8/net/smtp.rb:463:in `start'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/action_mailer/base.rb:586:in `perform_delivery_smtp'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/action_mailer/base.rb:469:in `__send__'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/action_mailer/base.rb:469:in `deliver!'
C:/Ruby187/lib/ruby/gems/1.8/gems/actionmailer-2.0.2/lib/action_mailer/base.rb:352:in `method_missing'
Alguem tens alguma idéia do que pode ser?