title: Action::Mailer not delivering mail to the recepients
body: <p>I tried to send mail to the user when his profile is being viewed. i.e When a user clicks on show of a particular contact that contact will be notified about the profile view. I did not get any errors. But there is some delay where i have triggered the mailer. And also it works fine in the console.  But the mail is not being sent to the recepient. </p>
  
  <p>This is what I have tried so far.</p>
  
  <p><strong>mailer.rb</strong>:</p>
  
  <pre><code>class CustomerSupport &lt; ActionMailer::Base
      def customer_support(contact) 
       mail :to =&gt; contact.email, :from =&gt; "sugukvs92@gmail.com", :subject =&gt; "profileviews"       
    end
    end
  </code></pre>
  
  <p><strong>setup_mail.rb</strong></p>
  
  <pre><code>ActionMailer::Base.delivery_method = :smtp
  ActionMailer::Base.smtp_settings = {
     :address =&gt; "smtp.gmail.com",
     :port =&gt; 587,
     :domain =&gt; "gmail.com",
     :user_name =&gt; "sugukvs92",
     :password =&gt; "**************",
     :authentication =&gt; "plain",
     :enable_starttls_auto =&gt; true
  }
  </code></pre>
  
  <p><strong>controller.rb</strong></p>
  
  <pre><code>def show
    @contact = Contact.find(params[:id])
      CustomerSupport.customer_support(@contact).deliver
  
  end
  </code></pre>
  
  <p>Do I need to add any gem to implement this?</p>
  
  <p><strong>development.log</strong></p>
  
  <p>Started GET "/contacts/3" for 127.0.0.1 at 2014-07-16 10:48:07 +0530
  Processing by ContactsController#show as HTML
    Parameters: {"id"=>"3"}
    [1m[36mContact Load (0.2ms)[0m  [1mSELECT  <code>contacts</code>.* FROM <code>contacts</code>  WHERE <code>contacts</code>.<code>id</code> = 3 LIMIT 1[0m
    Rendered customer_support/customer_support.html.erb (0.1ms)</p>
  
  <p>CustomerSupport#customer_support: processed outbound mail in 11.9ms</p>
  
  <pre><code>Sent mail to suganya.gnanasekar@in.reportbee.com (1797.4ms)
  Date: Wed, 16 Jul 2014 10:48:07 +0530
  From: sugukvs92@gmail.com
  To: suganya.gnanasekar@in.reportbee.com
  Message-ID: &lt;53c60b0f7e609_b993ec57901998d@ameex.mail&gt;
  Subject: customer support from Report Bee
   Mime-Version: 1.0
  Content-Type: text/html;
  charset=UTF-8
  Content-Transfer-Encoding: 7bit
  
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta content='text/html; charset=UTF-8' http-equiv='Content-Type' /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;Welcome to example.com, &lt;/h1&gt;
  &lt;p&gt;
    You have successfully signed up to example.com,
  
  &lt;/p&gt;
  &lt;p&gt;
    To login to the site, just follow this link: 
  &lt;/p&gt;
  &lt;p&gt;Thanks for joining and have a great day!&lt;/p&gt;
   &lt;/body&gt;
   &lt;/html&gt;
   Rendered contacts/show.html.erb within layouts/application (0.6ms)
  Completed 200 OK in 1829ms (Views: 16.2ms | ActiveRecord: 0.2ms)
  </code></pre>