Mail problem and rails 2.0.2

Hello,
I have some code for sending mails. The same worked perfectly on a
machine running rails version 1.2.5.

Now i have moved the entire application to another system which is
running rails 2.0.2 Whenever i try to send a mail i get an error
‘execution expired’

Please go through the following code if you can figure out something
wrong. Do i need to change something for rails 2.0.2?

My mailer model is as follows:

class UserMailer < ActionMailer::Base
def send_mail(person,textarea,subject)
recipients person.email1
from “[email protected]
subject subject
body textarea
content_type “text/html”
end
end

In the develeopment.rb i have the smtp settings as
.
.
.

Check error if the mailer can’t send

config.action_mailer.raise_delivery_errors = true

#set delivery method to :smtp, :sendmail or :test
config.action_mailer.delivery_method = :smtp

#these options are only needed if you choose smtp delivery
config.action_mailer.smtp_settings = {
:address => “mail.domain.com”,
:port => 25,
:authentication => :login,
:user_name => “[email protected]”,
:password => ‘123asd213’
}

Thank you.