Mail program error

Iam new to ruby on rails

    I read the one of the article in mail program.iam trying to 

execute
the program it shows the errors.here the error is

  execution expired

RAILS_ROOT: C:/emailexample
Application Trace | Framework Trace | Full Trace

C:/Ruby186/lib/ruby/1.8/timeout.rb:60:in rbuf_fill' C:/Ruby186/lib/ruby/1.8/net/protocol.rb:132:inrbuf_fill’
C:/Ruby186/lib/ruby/1.8/net/protocol.rb:116:in readuntil' C:/Ruby186/lib/ruby/1.8/net/protocol.rb:126:inreadline’
C:/Ruby186/lib/ruby/1.8/net/smtp.rb:663:in recv_response' C:/Ruby186/lib/ruby/1.8/net/smtp.rb:395:indo_start’
C:/Ruby186/lib/ruby/1.8/net/smtp.rb:685:in critical' C:/Ruby186/lib/ruby/1.8/net/smtp.rb:395:indo_start’
C:/Ruby186/lib/ruby/1.8/net/smtp.rb:377:in start' C:/Ruby186/lib/ruby/1.8/net/smtp.rb:315:instart’
C:/Ruby186/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:627:in
perform_delivery_smtp' C:/Ruby186/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:508:insend
C:/Ruby186/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:508:in
deliver!' C:/Ruby186/lib/ruby/gems/1.8/gems/actionmailer-2.1.0/lib/action_mailer/base.rb:383:inmethod_missing’
app/controllers/emailer_controller.rb:8:in `sendmail’

here the program is

class Emailer < ActionMailer::Base
def contact(recipient, subject, message, sent_at = Time.now)
@subject = subject
@recipients = recipient
@from = ‘[email protected]
@sent_on = sent_at
@body[“title”] = ‘This is title’
@body[“email”] = ‘[email protected]
@body[“message”] = message
@headers = {}
end
end

contact.rhtml file
Hi!

You are having one email message from <%= @email %> with a tilte

<%= @title %>
and following is the message:
<%= @message %>

Thanks

class EmailerController < ApplicationController
def sendmail
email = @params[“email”]
recipient = email[“recipient”]
subject = email[“subject”]
message = email[“message”]
Emailer.deliver_contact(recipient, subject, message)
return if request.xhr?
render :text => ‘Message sent successfully’
end
def index
render :file => ‘app\views\emailer\index.rhtml’
end

end

index.rhtml

Send Email

<%= start_form_tag :action => 'sendmail' %>

Subject: <%= text_field 'email', 'subject' %>

Recipient: <%= text_field 'email', 'recipient' %>

Message
<%= text_area 'email', 'message' %>

<%= submit_tag "Send" %> <%= end_form_tag %>

please give me the solution