title: HTML emails sent through rails arrive as attachment
body: <p>Following problem: Whenever I try to sent a HTML-email through rails, it arrives at my googlemail-adress as an empty email with the content as an attachment.</p>
  
  <p>I'm not quite sure what I'm doing wrong here.</p>
  
  <p>Setup as follows:</p>
  
  <pre><code>/app/mailers/testmail.rb
  class Testmail &lt; ActionMailer::Base
    default :from =&gt; "our_adress@our.router"
    default_url_options[:host] = '10.10.8.1'
  
    def email
      subject 'Willkommen!'
      recipients 'me@googlemail.com'
      from 'our_adress@our.router'
      sent_on Time.now
    end
  end
  
  /app/views/testmail/email.html.erb
  &lt;p&gt;Dies ist eine &lt;strong&gt;Testmail!&lt;/strong&gt;&lt;/p&gt;
  
  /app/views/testmail/email.text.erb
  Dies ist eine Test-Email!
  </code></pre>
  
  <p>This is what arrives in my Googlemail-Account:</p>
  
  <p><img src="https://i.stack.imgur.com/yYvYh.png" alt="inbox"></p>
  
  <p>The first email is what it looks like with with the html.erb and text.erb active, the second one with only text.erb.
  Ignore the username "root", that's due to a postfix rewrite because of the actual mailer being on another server (emails from the rails server get sent to the mail server which then actually mails them - not my setup ;)</p>
  
  <p>And here's the raw data from the first email:</p>
  
  <pre><code>Delivered-To: me@googlemail.com
  Received: by 10.101.108.3 with SMTP id k3cs279048anm;
      Wed, 21 Sep 2011 04:24:29 -0700 (PDT)
  Received: by 10.204.134.8 with SMTP id h8mr508445bkt.11.1316604268267;
      Wed, 21 Sep 2011 04:24:28 -0700 (PDT)
  Return-Path: &lt;inet@our_server&gt;
  Received: from our_server (our_server. [100.0.0.0])
      by mx.google.com with ESMTP id i7si2877863bke.151.2011.09.21.04.24.27;
      Wed, 21 Sep 2011 04:24:28 -0700 (PDT)
  Received-SPF: neutral (google.com: 100.0.0.0 is neither permitted nor denied by best guess record for domain of inet@our_server) client-ip=100.0.0.0;
  Authentication-Results: mx.google.com; spf=neutral (google.com: 100.0.0.0 is neither permitted nor denied by best guess record for domain of inet@our_server) smtp.mail=inet@our_server
  Received: from zero (our_server [100.0.0.1])
  by our_server (Postfix) with SMTP id 4251724B65
  for &lt;me@googlemail.com&gt;; Wed, 21 Sep 2011 13:24:26 +0200 (CEST)
  Received: by zero (sSMTP sendmail emulation); Wed, 21 Sep 2011 13:24:26 +0200
  From: "root" &lt;inet@our_server&gt;
  Date: Wed, 21 Sep 2011 13:24:25 +0200
  To: me@googlemail.com
  Message-ID: &lt;4e79c96a2ed6b_2ba53f7fe85ced9044023@zero.our_router.mail&gt;
  Subject: Willkommen!
  Mime-Version: 1.0
  Content-Type: multipart/alternative
  Content-Transfer-Encoding: 7bit
  
  ----==_mimepart_4e79c96a1adc0_2ba53f7fe85ced90437f9
  Date: Wed, 21 Sep 2011 13:24:26 +0200
  Mime-Version: 1.0
  Content-Type: text/plain;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  Content-Disposition: inline
  Content-ID: &lt;4e79c96a28cbb_2ba53f7fe85ced9043891@zero.our_router.mail&gt;
  
  Dies ist eine Test-Email!
  
  ----==_mimepart_4e79c96a1adc0_2ba53f7fe85ced90437f9
  Date: Wed, 21 Sep 2011 13:24:26 +0200
  Mime-Version: 1.0
  Content-Type: text/html;
   charset=UTF-8
  Content-Transfer-Encoding: 7bit
  Content-Disposition: inline
  Content-ID: &lt;4e79c96a2bd8d_2ba53f7fe85ced90439a1@zero.our_router.mail&gt;
  
  &lt;p&gt;Dies ist eine &lt;strong&gt;Testmail!&lt;/strong&gt;&lt;/p&gt;
  
  
  ----==_mimepart_4e79c96a1adc0_2ba53f7fe85ced90437f9--
  </code></pre>