You are here

public function InvoiceConfirmationMailInterface::send in Commerce Invoice 8.2

Sends the invoice confirmation email.

Parameters

\Drupal\commerce_invoice\Entity\InvoiceInterface $invoice: The invoice.

string $to: The address the email will be sent to. Must comply with RFC 2822. Defaults to the invoice 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 InvoiceConfirmationMailInterface::send()
InvoiceConfirmationMail::send in src/Mail/InvoiceConfirmationMail.php
Sends the invoice confirmation email.

File

src/Mail/InvoiceConfirmationMailInterface.php, line 23

Class

InvoiceConfirmationMailInterface

Namespace

Drupal\commerce_invoice\Mail

Code

public function send(InvoiceInterface $invoice, $to = NULL, $bcc = NULL);