public function OrderReceiptMailInterface::send in Commerce Core 8.2
Sends the order receipt email.
Parameters
\Drupal\commerce_order\Entity\OrderInterface $order: The order.
string $to: The address the email will be sent to. Must comply with RFC 2822. Defaults to the order email.
string $bcc: The BCC address or addresses (separated by a comma).
Return value
bool TRUE if the email was sent successfully, FALSE otherwise.
1 method overrides OrderReceiptMailInterface::send()
- OrderReceiptMail::send in modules/
order/ src/ Mail/ OrderReceiptMail.php - Sends the order receipt email.
File
- modules/
order/ src/ Mail/ OrderReceiptMailInterface.php, line 23
Class
Namespace
Drupal\commerce_order\MailCode
public function send(OrderInterface $order, $to = NULL, $bcc = NULL);