@@ 281-315 (lines=35) @@ | ||
278 | * @param $Customer 会員情報 |
|
279 | * @param $activateUrl アクティベート用url |
|
280 | */ |
|
281 | public function sendAdminCustomerConfirmMail(\Eccube\Entity\Customer $Customer, $activateUrl) |
|
282 | { |
|
283 | log_info('仮会員登録再送メール送信開始'); |
|
284 | ||
285 | $body = $this->app->renderView('Mail/entry_confirm.twig', array( |
|
286 | 'Customer' => $Customer, |
|
287 | 'activateUrl' => $activateUrl, |
|
288 | )); |
|
289 | ||
290 | $message = \Swift_Message::newInstance() |
|
291 | ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認') |
|
292 | ->setFrom(array($this->BaseInfo->getEmail03() => $this->BaseInfo->getShopName())) |
|
293 | ->setTo(array($Customer->getEmail())) |
|
294 | ->setBcc($this->BaseInfo->getEmail01()) |
|
295 | ->setReplyTo($this->BaseInfo->getEmail03()) |
|
296 | ->setReturnPath($this->BaseInfo->getEmail04()) |
|
297 | ->setBody($body); |
|
298 | ||
299 | $event = new EventArgs( |
|
300 | array( |
|
301 | 'message' => $message, |
|
302 | 'Customer' => $Customer, |
|
303 | 'BaseInfo' => $this->BaseInfo, |
|
304 | 'activateUrl' => $activateUrl, |
|
305 | ), |
|
306 | null |
|
307 | ); |
|
308 | $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_ADMIN_CUSTOMER_CONFIRM, $event); |
|
309 | ||
310 | $count = $this->app->mail($message); |
|
311 | ||
312 | log_info('仮会員登録再送メール送信完了', array('count' => $count)); |
|
313 | ||
314 | return $count; |
|
315 | } |
|
316 | ||
317 | ||
318 | /** |
|
@@ 366-399 (lines=34) @@ | ||
363 | * |
|
364 | * @param $Customer 会員情報 |
|
365 | */ |
|
366 | public function sendPasswordResetNotificationMail(\Eccube\Entity\Customer $Customer, $reset_url) |
|
367 | { |
|
368 | log_info('パスワード再発行メール送信開始'); |
|
369 | ||
370 | $body = $this->app->renderView('Mail/forgot_mail.twig', array( |
|
371 | 'Customer' => $Customer, |
|
372 | 'reset_url' => $reset_url |
|
373 | )); |
|
374 | ||
375 | $message = \Swift_Message::newInstance() |
|
376 | ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認') |
|
377 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
|
378 | ->setTo(array($Customer->getEmail())) |
|
379 | ->setReplyTo($this->BaseInfo->getEmail03()) |
|
380 | ->setReturnPath($this->BaseInfo->getEmail04()) |
|
381 | ->setBody($body); |
|
382 | ||
383 | $event = new EventArgs( |
|
384 | array( |
|
385 | 'message' => $message, |
|
386 | 'Customer' => $Customer, |
|
387 | 'BaseInfo' => $this->BaseInfo, |
|
388 | 'resetUrl' => $reset_url, |
|
389 | ), |
|
390 | null |
|
391 | ); |
|
392 | $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_PASSWORD_RESET, $event); |
|
393 | ||
394 | $count = $this->app->mail($message); |
|
395 | ||
396 | log_info('パスワード再発行メール送信完了', array('count' => $count)); |
|
397 | ||
398 | return $count; |
|
399 | } |
|
400 | ||
401 | /** |
|
402 | * Send password reset notification mail. |
|
@@ 406-439 (lines=34) @@ | ||
403 | * |
|
404 | * @param $Customer 会員情報 |
|
405 | */ |
|
406 | public function sendPasswordResetCompleteMail(\Eccube\Entity\Customer $Customer, $password) |
|
407 | { |
|
408 | log_info('パスワード変更完了メール送信開始'); |
|
409 | ||
410 | $body = $this->app->renderView('Mail/reset_complete_mail.twig', array( |
|
411 | 'Customer' => $Customer, |
|
412 | 'password' => $password, |
|
413 | )); |
|
414 | ||
415 | $message = \Swift_Message::newInstance() |
|
416 | ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のお知らせ') |
|
417 | ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName())) |
|
418 | ->setTo(array($Customer->getEmail())) |
|
419 | ->setReplyTo($this->BaseInfo->getEmail03()) |
|
420 | ->setReturnPath($this->BaseInfo->getEmail04()) |
|
421 | ->setBody($body); |
|
422 | ||
423 | $event = new EventArgs( |
|
424 | array( |
|
425 | 'message' => $message, |
|
426 | 'Customer' => $Customer, |
|
427 | 'BaseInfo' => $this->BaseInfo, |
|
428 | 'password' => $password, |
|
429 | ), |
|
430 | null |
|
431 | ); |
|
432 | $this->app['eccube.event.dispatcher']->dispatch(EccubeEvents::MAIL_PASSWORD_RESET_COMPLETE, $event); |
|
433 | ||
434 | $count = $this->app->mail($message); |
|
435 | ||
436 | log_info('パスワード変更完了メール送信完了', array('count' => $count)); |
|
437 | ||
438 | return $count; |
|
439 | } |
|
440 | ||
441 | } |
|
442 |