示例#1
0
文件: Mailer.php 项目: sebardo/core
 /**
  * Send the tracking code
  *
  * @param Transaction $transaction
  */
 public function sendTrackingCodeEmailMessage(Transaction $transaction)
 {
     $templateName = 'EcommerceBundle:Email:trackingCode.html.twig';
     $toEmail = $transaction->getActor()->getEmail();
     $context = array('order_number' => $transaction->getTransactionKey(), 'tracking_code' => $transaction->getDelivery()->getTrackingCode(), 'carrier_name' => 'Transporte');
     $this->sendMessage($templateName, $context, $this->parameters['company']['sales_email'], $toEmail);
 }