Mailing error in Rails 2.3.2

Hi,

My mails were working with the earlier version of rails ie. Rails
2.0.2. But recently when i upgraded my environment to 2.3.2 the mails
stopped working and gave
"Error: End of file reached".
But if i send mails independent of my rails app the mailing code works
fine.

My Environment:
Windows Xp
Ruby 1.8.7
actionmailer (2.3.2)
actionpack (2.3.2)
activerecord (2.3.2)
activeresource (2.3.2)
activesupport (2.3.2)
archive-tar-minitar (0.5.2)
cgi_multipart_eof_fix (2.5.0)
color (1.4.0)
dbd-odbc (0.2.4)
dbi (0.4.0)
deprecated (2.0.0)
gem_plugin (0.2.3)
hoe (1.8.2)
mongrel (1.1.5)
pdf-writer (1.1.8)
rails (2.3.2)
rake (0.8.4)
rubyforge (1.0.2)
transaction-simple (1.4.0)

Here is my test mails code:

Here is the stack trace

c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:135:in `sysread'
c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:135:in `rbuf_fill'
c:/ruby-1.8.7/lib/ruby/1.8/timeout.rb:62:in `timeout'
c:/ruby-1.8.7/lib/ruby/1.8/timeout.rb:93:in `timeout'
c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:134:in `rbuf_fill'
c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
c:/ruby-1.8.7/lib/ruby/1.8/net/protocol.rb:126:in `readline'
c:/ruby-1.8.7/lib/ruby/1.8/net/smtp.rb:911:in `recv_response'
D:/rails/india/pistachio/pistachio/app/controllers/send_email.rb:
111:in `do_start'
c:/ruby-1.8.7/lib/ruby/1.8/net/smtp.rb:921:in `critical'
D:/rails/india/pistachio/pistachio/app/controllers/send_email.rb:
111:in `do_start'
c:/ruby-1.8.7/lib/ruby/1.8/net/smtp.rb:525:in `start'
c:/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/
action_mailer/base.rb:681:in `perform_delivery_smtp'
c:/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/
action_mailer/base.rb:523:in `__send__'
c:/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/
action_mailer/base.rb:523:in `deliver!'
c:/ruby-1.8.7/lib/ruby/gems/1.8/gems/actionmailer-2.3.2/lib/
action_mailer/base.rb:429:in `deliver'
D:/rails/india/pistachio/pistachio/app/controllers/send_email.rb:76:in
`send_email'