Skip to content

New order notification is not sent to the admin #16203

Closed
@bnymn

Description

@bnymn

When a customer places an order, (s)he receives an order confirmation email but admin does not receive any notification.

I have traced back the error to this file (vendor/magento/module-sales/Model/Order/Email/Sender.php:84)

screenshot from 2018-06-17 16-24-56

It throws an exception with the following message "From Header set twice".

Preconditions

  1. PHP 7.1.18
  2. MySQL 5.7.22
  3. Magento 2.2.4

Steps to reproduce

  1. Login as admin.
  2. Go to Stores -> Configuration -> Sales -> Sales Emails.
  3. Go to Order section.
  4. Make sure it is enabled.
  5. Add your email into the field Send Order Email Copy To.
  6. "Send Order Email Copy Method" to "Separate Email".
  7. Go to your Magento store.
  8. Login as a customer.
  9. Make a new order.

Expected result

  1. The customer should receive the order confirmation email.
  2. The email address in the Magento admin which we have just added should also receive a copy.

Actual result

  1. The customer receives order confirmatio email.
  2. But admin is not notified, nor the copies are sent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: EmailFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions