Getting Rails 3 Mailer working with gmail

This is the first time trying to get the mailer to work in 3.1.1 We
are using gmail to handle our email at mycompany.com

What we have is a contact us page that should send the email to the
[email protected]’ mailbox.

At first I tried this with the sendmail setting and it worked fine on
my development machine (which is part of the mycompany.com domain).

I then deployed this to the rackspace box which is hosted on
www.mycompany.com.

The emails seem to be sent ok (no messages turned up in
/var/log/mail.{log,err,info,warn} to indicate otherwise) but never
arrive.

So I tried a different configuration that I found of stack overflow:

config.action_mailer.delivery_method = :smtp
config.action_mailer.smtp_settings = {
:address => “smtp.gmail.com”,
:port => 587,
:domain => ‘mycompany.com’,
:user_name => ‘[email protected]’,
:password => 'xxxxxxxxxx,
:authentication => ‘plain’,
:enable_starttls_auto => true
}

Again there is no error to be found but the emails do not arrive.

Has anyone got a similar set up that they got to work?