1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Allow CC, BCC, and In-Reply-To mail attributes to be set on new delivery

This commit is contained in:
David Heinemeier Hansson 2018-12-03 15:52:08 -08:00
parent 09da258fab
commit 9d798ca9c0
2 changed files with 16 additions and 1 deletions

View file

@ -17,7 +17,7 @@ class Rails::Conductor::ActionMailbox::InboundEmailsController < Rails::Conducto
private
def new_mail
Mail.new params.require(:mail).permit(:from, :to, :cc, :bcc, :subject, :body).to_h
Mail.new params.require(:mail).permit(:from, :to, :cc, :bcc, :in_reply_to, :subject, :body).to_h
end
def create_inbound_email(mail)

View file

@ -13,6 +13,21 @@
<%= form.text_field :to %>
</div>
<div>
<%= form.label :cc, "CC" %><br>
<%= form.text_field :cc %>
</div>
<div>
<%= form.label :bcc, "BCC" %><br>
<%= form.text_field :bcc %>
</div>
<div>
<%= form.label :in_reply_to, "In-Reply-To" %><br>
<%= form.text_field :in_reply_to %>
</div>
<div>
<%= form.label :subject, "Subject" %><br>
<%= form.text_field :subject %>