From aab9f6734d1027ee5ee49c150f3e7b264e801a82 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Thu, 20 Jun 2019 14:09:01 +0900 Subject: Include BCC in the mail that sent from the development page The BCC should be included as we show input field for BCC in view. https://github.com/rails/rails/blob/bf625f7fecabbcda22b388e088ad5c29016b2385/actionmailbox/app/views/rails/conductor/action_mailbox/inbound_emails/new.html.erb#L21-L24 --- .../rails/conductor/action_mailbox/inbound_emails_controller.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionmailbox/app/controllers/rails/conductor/action_mailbox') diff --git a/actionmailbox/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb b/actionmailbox/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb index d051dfe665..8713f545f5 100644 --- a/actionmailbox/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb +++ b/actionmailbox/app/controllers/rails/conductor/action_mailbox/inbound_emails_controller.rb @@ -21,6 +21,7 @@ module Rails private def new_mail Mail.new(params.require(:mail).permit(:from, :to, :cc, :bcc, :in_reply_to, :subject, :body).to_h).tap do |mail| + mail[:bcc]&.include_in_headers = true params[:mail][:attachments].to_a.each do |attachment| mail.add_file(filename: attachment.path, content: attachment.read) end -- cgit v1.2.3