/** * Send password reset notification mail. * * @param $Customer 会員情報 */ public function sendPasswordResetCompleteMail(\Eccube\Entity\Customer $Customer, $password) { $body = $this->app->renderView('Mail/reset_complete_mail.twig', array('Customer' => $Customer, 'password' => $password)); $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, 'password' => $password), null); $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_PASSWORD_RESET_COMPLETE, $event); $this->app->mail($message); }
/** * 送信完了報告メールを送信する * * @return number */ public function sendMailMagazineCompleateReportMail() { $subject = date('Y年m月d日H時i分') . ' 下記メールの配信が完了しました。'; $mailData = array('email' => $this->BaseInfo->getEmail03(), 'subject' => $subject, 'body' => $this->lastSendMailBody); return $this->sendMail($mailData); }
/** * Send password reset notification mail. * * @param $Customer 会員情報 */ public function sendPasswordResetCompleteMail(\Eccube\Entity\Customer $Customer, $password) { $body = $this->app->renderView('Mail/reset_complete_mail.twig', array('Customer' => $Customer, 'password' => $password)); $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); $this->app->mail($message); }