Eccube\Service\MailService::sendCustomerWithdrawMail PHP Метод

sendCustomerWithdrawMail() публичный Метод

Send withdraw mail.
public sendCustomerWithdrawMail ( Customer $Customer, $email )
$Customer Eccube\Entity\Customer 会員情報
$email 会員email
    public function sendCustomerWithdrawMail(\Eccube\Entity\Customer $Customer, $email)
    {
        log_info('退会手続き完了メール送信開始');
        $body = $this->app->renderView('Mail/customer_withdraw_mail.twig', array('Customer' => $Customer, 'BaseInfo' => $this->BaseInfo));
        $message = \Swift_Message::newInstance()->setSubject('[' . $this->BaseInfo->getShopName() . '] 退会手続きのご完了')->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))->setTo(array($email))->setBcc($this->BaseInfo->getEmail01())->setReplyTo($this->BaseInfo->getEmail03())->setReturnPath($this->BaseInfo->getEmail04())->setBody($body);
        $event = new EventArgs(array('message' => $message, 'Customer' => $Customer, 'BaseInfo' => $this->BaseInfo, 'email' => $email), null);
        $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_CUSTOMER_WITHDRAW, $event);
        $count = $this->app->mail($message);
        log_info('退会手続き完了メール送信完了', array('count' => $count));
        return $count;
    }