Ejemplo n.º 1
0
 /**
  * Send a message to the customer.
  *
  * @param string   $messageCode
  * @param Customer $customer
  * @param array    $messageParameters an array of (name => value) parameters that will be available in the message.
  */
 public function sendEmailToCustomer($messageCode, $customer, $messageParameters = [])
 {
     // Always add the customer ID to the parameters
     $messageParameters['customer_id'] = $customer->getId();
     $this->sendEmailMessage($messageCode, [ConfigQuery::getStoreEmail() => ConfigQuery::getStoreName()], [$customer->getEmail() => $customer->getFirstname() . " " . $customer->getLastname()], $messageParameters, $customer->getCustomerLang()->getLocale());
 }