title: Rails 3 - Action Mailer not sending message
body: <p>I have a button 'buy' which links to the 'review' page like so:</p>
  
  <pre><code>&lt;%= button_to 'Buy', review_hvacs_path(:b =&gt; true, :h =&gt; hvac, :a =&gt; params[:a], :s =&gt; params[:s]) %&gt;
  </code></pre>
  
  <p>This calls the review action in the controller, 'hvacs_controller' which contains..</p>
  
  <pre><code>@buy = params[:b]
  if !@buy.nil?
    @currentHvac = Hvac.find(params[:h])
    @supplier = HvacSupplier.find(@currentHvac.hvac_supplier_id)
    Notifier.gmail_message(@supplier)
  end
  </code></pre>
  
  <p>I am trying to send the message if the user presses the buy button.</p>
  
  <p>My development environment looks like this: </p>
  
  <pre><code>  # Don't care if the mailer can't send
    config.action_mailer.raise_delivery_errors = false
  
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.smtp_settings = {
      :enable_smarttls_auto =&gt; true,
      :address =&gt; 'smtp.gmail.com',
      :port =&gt; 587,
      :authentication =&gt; :plain,
      :domain =&gt; 'gmail.com',
      :username =&gt; '&lt;my email address&gt;@gmail.com',
      :password =&gt; '&lt;my password&gt;'
    }
  </code></pre>
  
  <p>...and my mailer looks like this:</p>
  
  <pre><code>class Notifier &lt; ActionMailer::Base
    default from: "user@address.com"
  
    # Subject can be set in your I18n file at config/locales/en.yml
    # with the following lookup:
    #
    #   en.notifier.gmail_message.subject
    #
    def gmail_message(supplier)
      @greeting = "HVAC Equipment Purchase"
      @supplier = supplier
  
      mail(:to =&gt; supplier.email, :subject =&gt; "HVAC Equipment Enquiry")
    end
  end
  </code></pre>
  
  <p>Message:</p>
  
  <pre><code>Notifier#gmail_message
  
  &lt;%= @greeting %&gt;, I am interesting in purchasing replacement equipment, and would like an evaluation.
  </code></pre>
  
  <p>Would anyone have any insight? I am missing something? If I left out any details, I will post them.</p>