Eccube\Service\MailService::sendPasswordResetNotificationMail PHP Method

sendPasswordResetNotificationMail() public method

Send password reset notification mail.
public sendPasswordResetNotificationMail ( Customer $Customer, $reset_url )
$Customer Eccube\Entity\Customer 会員情報
    public function sendPasswordResetNotificationMail(\Eccube\Entity\Customer $Customer, $reset_url)
    {
        log_info('パスワード再発行メール送信開始');
        $body = $this->app->renderView('Mail/forgot_mail.twig', array('Customer' => $Customer, 'reset_url' => $reset_url));
        $message = \Swift_Message::newInstance()->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認')->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))->setTo(array($Customer->getEmail()))->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, 'resetUrl' => $reset_url), null);
        $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_PASSWORD_RESET, $event);
        $count = $this->app->mail($message);
        log_info('パスワード再発行メール送信完了', array('count' => $count));
        return $count;
    }