title: How to disable ActionMailer in Development?
body: <p>sometimes when I am developing, I do not have an internet connection. This results in an error wherever my app is supposed to send an email:</p>
  
  <pre><code>getaddrinfo: nodename nor servname provided, or not known
  </code></pre>
  
  <p>Is there a simple and quick way where i can change a config value to make ActionMailer just not try to actually send out an email and not throw an error? Maybe something thats scoped to the development environment. Or some other way I can avoid the error being thrown and my code passing wherever I call the actionmailer deliver?</p>
  
  <p>I'm using Rails 3.1</p>