I meet an EOF ERROR when I try to send a mail by Mailer class. This is
my error information. Could you please kindly tell me the reason for it
and how to deal with it. Thank you.
EOFError in Order#confirm
End of file reached
RAILS_ROOT: ./script/…/config/…/
Application Trace | Framework Trace | Full Trace
c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in sysread' c:/ruby/lib/ruby/1.8/net/protocol.rb:197:in
rbuf_fill’
c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in timeout' c:/ruby/lib/ruby/1.8/timeout.rb:55:in
timeout’
c:/ruby/lib/ruby/1.8/net/protocol.rb:196:in rbuf_fill' c:/ruby/lib/ruby/1.8/net/protocol.rb:160:in
readuntil’
c:/ruby/lib/ruby/1.8/net/protocol.rb:171:in readline' c:/ruby/lib/ruby/1.8/net/smtp.rb:664:in
recv_response’
c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in do_start' c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in
critical’
c:/ruby/lib/ruby/1.8/net/smtp.rb:396:in do_start' c:/ruby/lib/ruby/1.8/net/smtp.rb:378:in
start’
c:/ruby/lib/ruby/1.8/net/smtp.rb:316:in start' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:436:in
perform_delivery_smtp’
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:327:in
send' c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:327:in
deliver!’
c:/ruby/lib/ruby/gems/1.8/gems/actionmailer-1.1.5/lib/action_mailer/base.rb:254:in
deliver' #{RAILS_ROOT}app/controllers/order_controller.rb:11:in
confirm’