title: Rails Cast: ActionMailer Email not sent to inbox
body: <p>The server states that the email was sent to the correct address but I am not getting the message in my inbox.</p>
  
  <p>My Setup_mail.rb file</p>
  
  <pre><code>ActionMailer::Base.smtp_settings ={
    :address          =&gt; "smtp.gmail.com",
    :port         =&gt; 587,
    :domain           =&gt; "gmail.com",
    :user_name        =&gt; "my_user_name@gmail.com",
    :password         =&gt; "my_password",
    :authentication       =&gt; "Plain",
    :enable_starttls_auto =&gt; true
  }
  </code></pre>
  
  <p>My <code>development.rb</code> file is:</p>
  
  <pre><code># Don't care if the mailer can't send
  config.action_mailer.raise_delivery_errors = true
  config.action_mailer.perform_deliveries = true #default value
  config.action_mailer.delivery_method = :smtp #default value
  </code></pre>
  
  <p>My <code>test.rb</code> file is:</p>
  
  <pre><code>config.action_mailer.delivery_method = :smtp
  </code></pre>
  
  <p>I have tried multiple variations and am lost.  I am running on a Windows 7 machine. I am running Ruby 1.8.7 and Rails 3.0.7 </p>
  
  <p>Can anyone help?</p>
  
  <p>Here is my create method:</p>
  
  <pre><code>def create
   @user = User.new(params[:user])
   if @user.save
     UserMailer.registration_confirmation(@user).deliver
     sign_in @user
     redirect_to @user, :flash =&gt; { :success =&gt; "Welcome to the Sample App!" }
   else
     @title = "Sign up"
     render 'new'
   end
  end
  </code></pre>
  
  <p>My user_mailer.rb
      class UserMailer &lt; ActionMailer::Base</p>
  
  <pre><code>default :from =&gt; "my_user_name@gmail.com"
  
  def registration_confirmation(user)
  mail(:to =&gt; user.email, :subject =&gt; "Thanks for registering")
  
  end
  end
  </code></pre>