title: Actionmailer not delivering mail, with rails 3
body: <p>I am trying to make an application, that sends an email when user registers.</p>
  
  <p>i put in the smtp settings for gmail in the config/application.rb file and the mail function looks like</p>
  
  <pre><code>mail(:to =&gt; "me@me.com", :subject =&gt; "Mail!", :from =&gt; "another@me.com", :content_type =&gt; "text/html")
  </code></pre>
  
  <p>now when i see the logs, i see that it says mail has been sent, but i never receive any mail at all...</p>
  
  <p>also, when i call the mail deliver function, <code>Emails.signed(@user).deliver</code>, the form page does not redirect, but it works if i comment out the email sending code that is either</p>
  
  <pre><code>Emails.signed(@user).deliver
  </code></pre>
  
  <p>or</p>
  
  <pre><code>mail(:to =&gt; "me@me.com", :subject =&gt; "Mail!", :from =&gt; "another@me.com", :content_type =&gt; "text/html")
  </code></pre>
  
  <p>Thanks :)</p>
  
  <p>Edit: development.rb</p>
  
  <pre><code>App::Application.configure do
    # Settings specified here will take precedence over those in config/environment.rb
  
    # In the development environment your application's code is reloaded on
    # every request.  This slows down response time but is perfect for development
    # since you don't have to restart the webserver when you make code changes.
    config.cache_classes = false
  
    # Log error messages when you accidentally call methods on nil.
    config.whiny_nils = true
  
    # Show full error reports and disable caching
    config.consider_all_requests_local       = true
    config.action_view.debug_rjs             = true
    config.action_controller.perform_caching = false
  
    # Don't care if the mailer can't send
    config.action_mailer.raise_delivery_errors = true
    config.action_mailer.perform_deliveries = true
  
    # Print deprecation notices to the Rails logger
    config.active_support.deprecation = :log
  
  end
  </code></pre>