title: Action Mailer Preview: Email 'new' not found in MessageMailerPreview
body: <p>I have three mailers, all of which work. But for one (the contact form) the mailer preview doesn't work and I don't understand why. </p>
  
  <p>The error message:</p>
  
  <pre><code>undefined method 'email'
    def new_message(message)
      @message = message
      mail from: message.email, subject: "Message from #{message.name}"
    end
  </code></pre>
  
  <p>In app/mailers/message_mailer.rb I have:</p>
  
  <pre><code>class MessageMailer &lt; ApplicationMailer
    default to: "&lt;info@myemail.com&gt;",
    return_path: "&lt;info@myemail.com&gt;"
    def new_message(message)
      @message = message
      mail from: message.email, subject: "Message from #{message.name}"
    end
  end
  </code></pre>
  
  <p>Part of app/views/messages/new.html.erb:</p>
  
  <pre><code>&lt;%= form_for :message, url: contact_path do |f| %&gt;
    &lt;%= f.label :name %&gt;
    &lt;%= f.text_field :name, placeholder: 'Name', class: 'form-control' %&gt;
    &lt;%= f.label :email %&gt;
    &lt;%= f.email_field :email, placeholder: 'Email', class: 'form-control' %&gt;
    &lt;%= f.label :content %&gt;
    &lt;%= f.text_area :content, placeholder: 'Your message…', class: 'form-control' %&gt;
    &lt;%= f.submit "Send", class: "btn btn-primary" %&gt;
  &lt;% end %&gt;
  </code></pre>
  
  <p>test/mailers/previews/test_mailer_preview.rb:</p>
  
  <pre><code>class MessageMailerPreview &lt; ActionMailer::Preview
      message = [name: "My Name", email: "noreply@example.com", content: "This is my message"]
      MessageMailer.new_message(message)
    end
  end
  </code></pre>
  
  <p>The contact form is properly working on the development server, and the other two mailers (password reset and authentication) also work and for these last two mailers the previews also work properly. These two mailers also have model.email in the mailer, and there it does work. I don't understand why the preview for the contact form mailer produces the error message.</p>