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

What we have is a contact us page that should send the email to the
'' mailbox.

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

I then deployed this to the rackspace box which is hosted on

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

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

  config.action_mailer.delivery_method = :smtp
  config.action_mailer.smtp_settings = {
    :address => "",
    :port => 587,
    :domain => '',
    :user_name => '',
    :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?