title: Rails: Not receiving email from contact us form
body: <p>I have a app in hosted in heroku just to test if the contact us form work but never receive a email, this is my contact model</p>
  
  <pre><code>class Contact &lt; MailForm::Base
    attribute :name,      :validate =&gt; true
    attribute :email,     :validate =&gt; /\A([\w\.%\+\-]+)@([\w\-]+\.)+([\w]{2,})\z/i
    attribute :message
    attribute :nickname,  :captcha  =&gt; true
  
    # Declare the e-mail headers. It accepts anything the mail method
    # in ActionMailer accepts.
    def headers
      {
        :subject =&gt; "My Contact Form",
        :to =&gt; "contact@gmail.com",
        :from =&gt; %("#{name}" &lt;#{email}&gt;)
      }
    end
  end
  </code></pre>
  
  <p>and thid my production.rb file</p>
  
  <pre><code>  config.action_mailer.default_url_options = { :host =&gt; 'young-river-2391.herokuapp.com' }
    config.action_mailer.delivery_method = :smtp
    config.action_mailer.perform_deliveries = true
    config.action_mailer.raise_delivery_errors = false
    config.action_mailer.default :charset =&gt; "utf-8"
    config.action_mailer.smtp_settings = {
      address:              'smtp.gmail.com',
      port:                 587,
      domain:               'gmail.com',
      user_name:            'contact@gmail.com',
      password:             'mypassword',
      authentication:       'plain',
      enable_starttls_auto: true  }
  </code></pre>
  
  <p>Update:
  This is what I'm getting from the console</p>
  
  <pre><code>2014-11-08T17:35:07.141130+00:00 app[web.1]: Started POST "/contacts" for 105.132.166.163 at 2014-11-08 17:35:07 +0000
  2014-11-08T17:35:07.142447+00:00 app[web.1]: Processing by ContactsController#create as HTML
  2014-11-08T17:35:07.142452+00:00 app[web.1]: Processing by ContactsController#create as HTML
  2014-11-08T17:35:07.142497+00:00 app[web.1]:   Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"t152NgJZxX9mIdlRS/CGsxH6lCwg3PDj0UphBnHXOZw=", "contact"=&gt;{"name"=&gt;"name ", "email"=&gt;"name@gmail.com", "message"=&gt;"This is a message", "nickname"=&gt;""}, "commit"=&gt;"Send message"}
  2014-11-08T17:35:07.142513+00:00 app[web.1]:   Parameters: {"utf8"=&gt;"✓", "authenticity_token"=&gt;"t152NgJZxX9mIdlRS/CGsxH6lCwg3PDj0UphBnHXOZw=", "contact"=&gt;{"name"=&gt;"name ", "email"=&gt;"name@gmail.com", "message"=&gt;"This is a message", "nickname"=&gt;""}, "commit"=&gt;"Send message"}
  2014-11-08T17:35:07.149561+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/mail_form-1.5.0/lib/mail_form/views/mail_form/contact.erb (0.7ms)
  2014-11-08T17:35:07.149568+00:00 app[web.1]:   Rendered vendor/bundle/ruby/2.0.0/gems/mail_form-1.5.0/lib/mail_form/views/mail_form/contact.erb (0.7ms)
  2014-11-08T17:35:07.141175+00:00 app[web.1]: Started POST "/contacts" for 105.132.166.163 at 2014-11-08 17:35:07 +0000
  2014-11-08T17:35:07.417088+00:00 heroku[router]: at=info method=POST path="/contacts" host=young-river-2391.herokuapp.com request_id=7cabe546-1435-4626-a441-01377a668def fwd="105.132.166.163" dyno=web.1 connect=2ms service=281ms status=200 bytes=1719
  2014-11-08T17:35:07.414677+00:00 app[web.1]: 
  2014-11-08T17:35:07.414680+00:00 app[web.1]: Sent mail to contact@gmail.com (263.7ms)
  2014-11-08T17:35:07.414686+00:00 app[web.1]: 
  2014-11-08T17:35:07.414687+00:00 app[web.1]: Sent mail to contact@gmail.com (263.7ms)
  2014-11-08T17:35:07.415701+00:00 app[web.1]:   Rendered contacts/create.html.erb within layouts/application (0.1ms)
  2014-11-08T17:35:07.415706+00:00 app[web.1]:   Rendered contacts/create.html.erb within layouts/application (0.1ms)
  2014-11-08T17:35:07.416507+00:00 app[web.1]: Completed 200 OK in 274ms (Views: 1.3ms | ActiveRecord: 0.0ms)
  2014-11-08T17:35:07.416512+00:00 app[web.1]: Completed 200 OK in 274ms (Views: 1.3ms | ActiveRecord: 0.0ms)
  </code></pre>