title: rails mailer with different layouts
body: <p>I use one layout for all my emails in my Notifier model (20+ emails)... however sometimes I just want to send a plain text email with no layout or html at all.  I can't seem to be able to figure out how?  If I try to send a plain text email i still get the layout, and all the HTML in the email.</p>
  
  <p>I'm using Rails 2.3.8.</p>
  
  <p>I read about this monkey patch here... but it seemed to indicate a newer version of rails had over come this? And I don't really wanna monkey patch if I can avoid one.</p>
  
  <p><a href="https://stackoverflow.com/questions/364162/rails-setting-multiple-layouts-for-a-multipart-email-with-mailer-templates">Rails - setting multiple layouts for a multipart email with mailer templates</a></p>
  
  <pre><code>  layout "email" # use email.text.(html|plain).erb as the layout
  
  
    def welcome_email(property)
      subject    'New Signup'
      recipients property.email
      from       'welcome@test.com'
      body       :property =&gt; property
      content_type "text/html"
    end
  
    def send_inquiry(inquire)
      subject    "#{inquire.the_subject}"
      recipients inquire.ob.email
      from       "Test on behalf of #{inquire.name} &lt;#{inquire.email}&gt;"
      body       :inquire =&gt; inquire
      content_type "text/plain"
  
    end
  </code></pre>
  
  <p>I also have 2 files.</p>
  
  <pre><code>email.text.html.erb
  email.text.plain.erb
  </code></pre>
  
  <p>It always uses text.html.erb... even if the content_type is "text/plain"</p>