EOFError (end of file reached) while sending emails through Rails Application

EOFError (end of file reached) while sending emails through Rails Application

Hi,

I am getting below error: 
EOFError (end of file reached):
  app/models/user.rb:49:in `send_email'
  app/controllers/users_controller.rb:19:in `block in update'
  app/controllers/users_controller.rb:18:in `update'

My application is sending email for 'forgetting password', (implemented by devise gem) 
but it's giving error for user defined mailers.

It was working with google apps though.

I have added following configuration under development.rb:
config.action_mailer.delivery_method = :smtp

config.action_mailer.smtp_settings = {
:address => "smtp.zoho.com",
:port => 465,
:domain => 'loveandlaugherplayschool.com',
:user_name => 'info@loveandlaughterplayschool.com',
:password => ".......",
:authentication => :plain,
:enable_starttls_auto => true,
:tls => true
}
Please advise

Thanks & Regards,
Vinti