OrderReceiptSubscriber has the following code:

    $customer = $order->getCustomer();
    if (!$customer) {
      // Anonymous orders have no customer attached, therefore nobody to email.
      return;
    }

This is untrue, that's why we have $order->getMail(). We should not be using $order->getCustomer() at all.

Comments

bojanz created an issue. See original summary.

  • bojanz committed f17218e on 8.x-2.x
    Issue #2835048: The order receipt email is not sent to anonymous...
bojanz’s picture

Status: Active » Fixed

Fixed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.