You are here

interface OrderReceiptMailInterface in Commerce Core 8.2

Hierarchy

Expanded class hierarchy of OrderReceiptMailInterface

All classes that implement OrderReceiptMailInterface

2 files declare their use of OrderReceiptMailInterface
OrderReceiptResendForm.php in modules/order/src/Form/OrderReceiptResendForm.php
OrderReceiptSubscriber.php in modules/order/src/EventSubscriber/OrderReceiptSubscriber.php

File

modules/order/src/Mail/OrderReceiptMailInterface.php, line 7

Namespace

Drupal\commerce_order\Mail
View source
interface OrderReceiptMailInterface {

  /**
   * Sends the order receipt email.
   *
   * @param \Drupal\commerce_order\Entity\OrderInterface $order
   *   The order.
   * @param string $to
   *   The address the email will be sent to. Must comply with RFC 2822.
   *   Defaults to the order email.
   * @param string $bcc
   *   The BCC address or addresses (separated by a comma).
   *
   * @return bool
   *   TRUE if the email was sent successfully, FALSE otherwise.
   */
  public function send(OrderInterface $order, $to = NULL, $bcc = NULL);

}

Members

Namesort descending Modifiers Type Description Overrides
OrderReceiptMailInterface::send public function Sends the order receipt email. 1