title: Action Mailer Confirmation Emails - Ruby on Rails
body: <p>I have successfully installed the <a href="http://github.com/thoughtbot/clearance" rel="nofollow noreferrer">Clearance Gem</a> from ThoughtBot. Clearance sends a confirmation email upon a new sign_up and suggests adding:</p>
  
  <pre><code>config.action_mailer.default_url_options = { :host =&gt; 'localhost:3000' }
  </code></pre>
  
  <p>to your /environments/test.rb and development.rb. I have tried this and also </p>
  
  <pre><code>config.action_mailer.default_url_options = { :host =&gt; '127.0.0.1', :port =&gt; 3000 }
  </code></pre>
  
  <p>But can't seem to get rails to send the email. As I am new to both Ruby and Rails, I am wondering if there is some step/config that ThoughtBot is assuming I have already done to send emails. </p>
  
  <p>What am I doing wrong/missing?</p>
  
  <p>UPDATE:
  Just added notifier.rb</p>
  
  <pre><code>class Notifier &lt; ActionMailer::Base
   def signup_notification(recipient)
    recipients recipient.email_address_with_name
         bcc        ["example@gmail.com"]
         from       "example@example.com"
         subject    "New account information"
         body       :account =&gt; recipient
       end
  
  end
  </code></pre>