problem in sending email

Dear friends, I am new to rails.I am develoing a test application in which i need to send email . I have rails 2.2.2 I have made following changes in application.rb

ActionMailer::Base.delivery_method = :smtp

ActionMailer::Base.smtp_settings = { :address => ‘smtp.gmail.com’, :port => 587, :domain => ‘gmail.com’, :authentication => :plain, :user_name => ‘raafay86@gmail.com’, :password => ‘lionesss’, :tls => true }

When i send email I get following message in prompt:

Hello Muhammad,

Your question showed up twice, so answered again.

I assume you've already installed action_mailer_optional_tls so I won't say to do that.

I use:

ActionMailer::Base.smtp_settings = {   :tls => true,   :address => "smtp.gmail.com",   :port => 25,   :domain => "gmail.com",   :authentication => :login,   :user_name => "b........@gmail.com",   :password => "........"

}

But I also needed to make a change to smtp_tls.rb so it would work with Ruby 1.8.7. Specifically:

Change:

check_auth_args user, secret, authtype if user or secret To:

    check_auth_args user, secret if user or secret

As for some reason check_auth_args went from 3 args to 2.

Rick