title: Cannot get ActionMailer working with MS Exchange via SMTP
body: <p>Here's my simple test program (using ActionMailer 3.0.8, Ruby 1.9.2p180 Mac OS X):</p>
  
  <pre><code>require 'rubygems'
  require 'action_mailer'
  
  ActionMailer::Base.delivery_method = :smtp
  
  ActionMailer::Base.smtp_settings = {
      :address =&gt; "my_exchange_server",
      :port =&gt; 25,
      :domain =&gt; 'my_domain.org',
      :authentication =&gt; :login,
      :user_name =&gt; 'my_user',
      :password =&gt; 'my_password',
      :enable_starttls_auto =&gt; false
  }
  
  ActionMailer::Base.raise_delivery_errors = true
  ActionMailer::Base.perform_deliveries = true
  ActionMailer::Base.default :from =&gt; 'from_email@my_company.com'
  
  m = ActionMailer::Base.mail :to =&gt; 'to_email@my_company.com', :subject =&gt; 'this is a test', :body =&gt; 'this is a test'
  m.deliver
  </code></pre>
  
  <p>Trying various authentication types I get the following errors:</p>
  
  <p>:plain error:</p>
  
  <pre><code>smtp.rb:966:in `check_auth_response': 504 5.7.4 Unrecognized authentication type. (Net::SMTPAuthenticationError)
  </code></pre>
  
  <p>:login error:</p>
  
  <pre><code>smtp.rb:972:in `check_auth_continue': 504 5.7.4 Unrecognized authentication type. (Net::SMTPSyntaxError)
  </code></pre>
  
  <p>:cram_md5 error:</p>
  
  <pre><code>smtp.rb:972:in `check_auth_continue': 504 5.7.4 Unrecognized authentication type. (Net::SMTPSyntaxError)
  </code></pre>
  
  <p>No authentication error:</p>
  
  <pre><code>protocol.rb:135:in `read_nonblock': end of file reached (EOFError)
  </code></pre>
  
  <p>Any ideas?</p>