title: rails letter opener is opening mail in unusual way
body: <p>I am using 2 gems <br>
  1) delayed_job_active_record <br>
  2) letter_opener<br>
  I am trying to send a mail to a particular user after 5 minutes.So the mail is sending but the response which I am getting is in 'rich.html.erb' which is opening automatically with my sublime text.And I need a way so that it  should be opened with my browser.So what to do? <br>
  [delayed_job.rb]</p>
  
  <pre><code>#!/usr/bin/env ruby
  
  require File.expand_path(File.join(File.dirname(__FILE__), '..', 'config', 'environment'))
  require 'delayed/command'
  Delayed::Command.new(ARGV).daemonize
  </code></pre>
  
  <p><br>
  [User.rb]</p>
  
  <pre><code>class User &lt; ActiveRecord::Base
    # Include default devise modules. Others available are:
    # :confirmable, :lockable, :timeoutable and :omniauthable
    devise :database_authenticatable, :registerable,
           :recoverable, :rememberable, :trackable, :validatable
  
     after_save :user_email
  
     def user_email
          Usermailer.delay.user_mail('raghavvishnoi10@gmail.com')
     end      
  end
  </code></pre>
  
  <p><br>
  [usermailer.rb]</p>
  
  <pre><code>class Usermailer &lt; ActionMailer::Base
  
      default from: "from@example.com"
  
  
      def user_mail(email)
          mail(to: email,subject: "hello")
      end
  end
  </code></pre>
  
  <p><br>
  And basically this file is opening automatically in my sublime text.I  want this file to be open with my browser <br>
  [rich.html]<br>
      
        
          </p>
  
  <pre><code>      &lt;title&gt;hello&lt;/title&gt;
  
  
      &lt;style type="text/css"&gt;
        #container {
          margin: 10px auto;
        }
        #message_headers {
          background: #fff;
          font-size: 12px;
          font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
          border-bottom: 1px solid #dedede;
          margin-bottom: 10px;
          overflow: auto;
        }
  
        #message_headers dl {
          float: left;
          line-height: 1.3em;
          padding: 0;
        }
  
        #message_headers dt {
          width: 92px;
          margin: 0;
          float: left;
          text-align: right;
          font-weight: bold;
          color: #7f7f7f;
        }
  
        #message_headers dd {
          margin: 0 0 0 102px;
        }
  
        #message_headers p.alternate {
          float: right;
          margin: 0;
        }
  
        #message_headers p.alternate a {
          color: #09c;
        }
  
        pre#message_body {
          padding: 4px;
          white-space: pre-wrap;
          border: 1px solid #eee;
          background-color: #fcfcfc;
        }
  
        iframe {
          border: 0;
          width: 100%;
          height: 100%;
        }
      &lt;/style&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div id="container"&gt;
        &lt;div id="message_headers"&gt;
          &lt;dl&gt;
            &lt;dt&gt;From:&lt;/dt&gt;
            &lt;dd&gt;from@example.com&lt;/dd&gt;
  
  
  
  
  
  
              &lt;dt&gt;Subject:&lt;/dt&gt;
              &lt;dd&gt;&lt;strong&gt;hello&lt;/strong&gt;&lt;/dd&gt;
  
  
            &lt;dt&gt;Date:&lt;/dt&gt;
            &lt;dd&gt;Nov 30, 2015 05:33:46 PM IST&lt;/dd&gt;
  
  
              &lt;dt&gt;To:&lt;/dt&gt;
              &lt;dd&gt;raghavvishnoi10@gmail.com&lt;/dd&gt;
  
  
  
  
  
  
  
          &lt;/dl&gt;
  
  
        &lt;/div&gt;
  
  
          &lt;iframe seamless="seamless" srcdoc="&lt;base target='_top'&gt;hello"&gt;&lt;/iframe&gt;
  
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>