Failed Conditions
Push — experimental/3.1 ( 7af380...69f38c )
by chihiro
29s
created

MailService::sendAdminOrderMail()   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 36
Code Lines 25

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 24
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 25
c 0
b 0
f 0
nc 1
nop 2
dl 0
loc 36
ccs 24
cts 24
cp 1
crap 1
rs 8.8571
1
<?php
2
/*
3
 * This file is part of EC-CUBE
4
 *
5
 * Copyright(c) 2000-2015 LOCKON CO.,LTD. All Rights Reserved.
6
 *
7
 * http://www.lockon.co.jp/
8
 *
9
 * This program is free software; you can redistribute it and/or
10
 * modify it under the terms of the GNU General Public License
11
 * as published by the Free Software Foundation; either version 2
12
 * of the License, or (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU General Public License
20
 * along with this program; if not, write to the Free Software
21
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
22
 */
23
24
namespace Eccube\Service;
25
26
use Eccube\Annotation\Inject;
27
use Eccube\Annotation\Service;
28
use Eccube\Application;
29
use Eccube\Entity\BaseInfo;
30
use Eccube\Event\EccubeEvents;
31
use Eccube\Event\EventArgs;
32
use Eccube\Repository\BaseInfoRepository;
33
use Eccube\Repository\MailTemplateRepository;
34
use Symfony\Component\EventDispatcher\EventDispatcher;
35
36
/**
37
 * @Service
38
 */
39
class MailService
40
{
41
    /**
42
     * @Inject(MailTemplateRepository::class)
43
     * @var MailTemplateRepository
44
     */
45
    protected $mailTemplateRepository;
46
47
    /**
48
     * @Inject("eccube.event.dispatcher")
49
     * @var EventDispatcher
50
     */
51
    protected $eventDispatcher;
52
53
    /**
54
     * @Inject(BaseInfo::class)
55
     * @var BaseInfo
56
     */
57
    protected $BaseInfo;
58
59
    /**
60
     * @Inject(Application::class)
61
     * @var Application
62
     */
63
    protected $app;
64
65
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
introduced by
Doc comment for parameter "$activateUrl" missing
Loading history...
66
     * Send customer confirm mail.
67
     *
68
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
69
     * @param $activateUrl アクティベート用url
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
70
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
71 2
    public function sendCustomerConfirmMail(\Eccube\Entity\Customer $Customer, $activateUrl)
72
    {
73
74 2
        log_info('仮会員登録メール送信開始');
75
76 2
        $body = $this->app->renderView('Mail/entry_confirm.twig', array(
77 2
            'Customer' => $Customer,
78 2
            'BaseInfo' => $this->BaseInfo,
79 2
            'activateUrl' => $activateUrl,
80
        ));
81
82 2
        $message = \Swift_Message::newInstance()
83 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
84 2
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
85 2
            ->setTo(array($Customer->getEmail()))
86 2
            ->setBcc($this->BaseInfo->getEmail01())
87 2
            ->setReplyTo($this->BaseInfo->getEmail03())
88 2
            ->setReturnPath($this->BaseInfo->getEmail04())
89 2
            ->setBody($body);
90
91 2
        $event = new EventArgs(
92
            array(
93 2
                'message' => $message,
94 2
                'Customer' => $Customer,
95 2
                'BaseInfo' => $this->BaseInfo,
96 2
                'activateUrl' => $activateUrl,
97
            ),
98 2
            null
99
        );
100 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_CUSTOMER_CONFIRM, $event);
101
102 2
        $count = $this->app->mail($message, $failures);
103
104 2
        log_info('仮会員登録メール送信完了', array('count' => $count));
105
106 2
        return $count;
107
    }
108
109
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
110
     * Send customer complete mail.
111
     *
112
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
113
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
114 2 View Code Duplication
    public function sendCustomerCompleteMail(\Eccube\Entity\Customer $Customer)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
115
    {
116 2
        log_info('会員登録完了メール送信開始');
117
118 2
        $body = $this->app->renderView('Mail/entry_complete.twig', array(
119 2
            'Customer' => $Customer,
120 2
            'BaseInfo' => $this->BaseInfo,
121
        ));
122
123 2
        $message = \Swift_Message::newInstance()
124 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録が完了しました。')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
125 2
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
126 2
            ->setTo(array($Customer->getEmail()))
127 2
            ->setBcc($this->BaseInfo->getEmail01())
128 2
            ->setReplyTo($this->BaseInfo->getEmail03())
129 2
            ->setReturnPath($this->BaseInfo->getEmail04())
130 2
            ->setBody($body);
131
132 2
        $event = new EventArgs(
133
            array(
134 2
                'message' => $message,
135 2
                'Customer' => $Customer,
136 2
                'BaseInfo' => $this->BaseInfo,
137
            ),
138 2
            null
139
        );
140 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_CUSTOMER_COMPLETE, $event);
141
142 2
        $count = $this->app->mail($message);
143
144 2
        log_info('会員登録完了メール送信完了', array('count' => $count));
145
146 2
        return $count;
147
    }
148
149
150
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
introduced by
Doc comment for parameter "$email" missing
Loading history...
151
     * Send withdraw mail.
152
     *
153
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
154
     * @param $email 会員email
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
155
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
156 2 View Code Duplication
    public function sendCustomerWithdrawMail(\Eccube\Entity\Customer $Customer, $email)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
157
    {
158 2
        log_info('退会手続き完了メール送信開始');
159
160 2
        $body = $this->app->renderView('Mail/customer_withdraw_mail.twig', array(
161 2
            'Customer' => $Customer,
162 2
            'BaseInfo' => $this->BaseInfo,
163
        ));
164
165 2
        $message = \Swift_Message::newInstance()
166 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 退会手続きのご完了')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
167 2
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
168 2
            ->setTo(array($email))
169 2
            ->setBcc($this->BaseInfo->getEmail01())
170 2
            ->setReplyTo($this->BaseInfo->getEmail03())
171 2
            ->setReturnPath($this->BaseInfo->getEmail04())
172 2
            ->setBody($body);
173
174 2
        $event = new EventArgs(
175
            array(
176 2
                'message' => $message,
177 2
                'Customer' => $Customer,
178 2
                'BaseInfo' => $this->BaseInfo,
179 2
                'email' => $email,
180
            ),
181 2
            null
182
        );
183 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_CUSTOMER_WITHDRAW, $event);
184
185 2
        $count = $this->app->mail($message);
186
187 2
        log_info('退会手続き完了メール送信完了', array('count' => $count));
188
189 2
        return $count;
190
    }
191
192
193
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$formData" missing
Loading history...
194
     * Send contact mail.
195
     *
196
     * @param $formData お問い合わせ内容
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
197
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
198 5 View Code Duplication
    public function sendContactMail($formData)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
199
    {
200 5
        log_info('お問い合わせ受付メール送信開始');
201
202 5
        $body = $this->app->renderView('Mail/contact_mail.twig', array(
203 5
            'data' => $formData,
204 5
            'BaseInfo' => $this->BaseInfo,
205
        ));
206
207
        // 問い合わせ者にメール送信
208 5
        $message = \Swift_Message::newInstance()
209 5
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] お問い合わせを受け付けました。')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
210 5
            ->setFrom(array($this->BaseInfo->getEmail02() => $this->BaseInfo->getShopName()))
211 5
            ->setTo(array($formData['email']))
212 5
            ->setBcc($this->BaseInfo->getEmail02())
213 5
            ->setReplyTo($this->BaseInfo->getEmail02())
214 5
            ->setReturnPath($this->BaseInfo->getEmail04())
215 5
            ->setBody($body);
216
217 5
        $event = new EventArgs(
218
            array(
219 5
                'message' => $message,
220 5
                'formData' => $formData,
221 5
                'BaseInfo' => $this->BaseInfo,
222
            ),
223 5
            null
224
        );
225 5
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_CONTACT, $event);
226
227 5
        $count = $this->app->mail($message);
228
229 5
        log_info('お問い合わせ受付メール送信完了', array('count' => $count));
230
231 5
        return $count;
232
    }
233
234
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$formData" missing
Loading history...
235
     * Alias of sendContactMail().
236
     *
237
     * @param $formData お問い合わせ内容
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
238
     * @see sendContactMail()
239
     * @deprecated since 3.0.0, to be removed in 3.1
240
     * @link https://github.com/EC-CUBE/ec-cube/issues/1315
241
     */
242 1
    public function sendrContactMail($formData)
243
    {
244 1
        $this->sendContactMail($formData);
245
    }
246
247
    /**
248
     * Send order mail.
249
     *
250
     * @param \Eccube\Entity\Order $Order 受注情報
251
     * @return string
252
     */
253 3
    public function sendOrderMail(\Eccube\Entity\Order $Order)
254
    {
255 3
        log_info('受注メール送信開始');
256
257 3
        $MailTemplate = $this->mailTemplateRepository->find(1);
258
259 3
        $body = $this->app->renderView($MailTemplate->getFileName(), array(
260 3
            'header' => $MailTemplate->getHeader(),
261 3
            'footer' => $MailTemplate->getFooter(),
262 3
            'Order' => $Order,
263
        ));
264
265 3
        $message = \Swift_Message::newInstance()
266 3
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $MailTemplate->getSubject())
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
267 3
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
268 3
            ->setTo(array($Order->getEmail()))
269 3
            ->setBcc($this->BaseInfo->getEmail01())
270 3
            ->setReplyTo($this->BaseInfo->getEmail03())
271 3
            ->setReturnPath($this->BaseInfo->getEmail04())
272 3
            ->setBody($body);
273
274 3
        $event = new EventArgs(
275
            array(
276 3
                'message' => $message,
277 3
                'Order' => $Order,
278 3
                'MailTemplate' => $MailTemplate,
279 3
                'BaseInfo' => $this->BaseInfo,
280
            ),
281 3
            null
282
        );
283 3
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_ORDER, $event);
284
285 3
        $count = $this->app->mail($message);
286
287 3
        log_info('受注メール送信完了', array('count' => $count));
288
289 3
        return $message;
290
291
    }
292
293
294
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
introduced by
Doc comment for parameter "$activateUrl" missing
Loading history...
295
     * Send admin customer confirm mail.
296
     *
297
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
298
     * @param $activateUrl アクティベート用url
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
299
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
300 2 View Code Duplication
    public function sendAdminCustomerConfirmMail(\Eccube\Entity\Customer $Customer, $activateUrl)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
301
    {
302 2
        log_info('仮会員登録再送メール送信開始');
303
304 2
        $body = $this->app->renderView('Mail/entry_confirm.twig', array(
305 2
            'Customer' => $Customer,
306 2
            'activateUrl' => $activateUrl,
307
        ));
308
309 2
        $message = \Swift_Message::newInstance()
310 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] 会員登録のご確認')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
311 2
            ->setFrom(array($this->BaseInfo->getEmail03() => $this->BaseInfo->getShopName()))
312 2
            ->setTo(array($Customer->getEmail()))
313 2
            ->setBcc($this->BaseInfo->getEmail01())
314 2
            ->setReplyTo($this->BaseInfo->getEmail03())
315 2
            ->setReturnPath($this->BaseInfo->getEmail04())
316 2
            ->setBody($body);
317
318 2
        $event = new EventArgs(
319
            array(
320 2
                'message' => $message,
321 2
                'Customer' => $Customer,
322 2
                'BaseInfo' => $this->BaseInfo,
323 2
                'activateUrl' => $activateUrl,
324
            ),
325 2
            null
326
        );
327 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_ADMIN_CUSTOMER_CONFIRM, $event);
328
329 2
        $count = $this->app->mail($message);
330
331 2
        log_info('仮会員登録再送メール送信完了', array('count' => $count));
332
333 2
        return $count;
334
    }
335
336
337
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Order" missing
Loading history...
introduced by
Doc comment for parameter "$formData" missing
Loading history...
338
     * Send admin order mail.
339
     *
340
     * @param $Order 受注情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
341
     * @param $formData 入力内容
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
342
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
343 3
    public function sendAdminOrderMail(\Eccube\Entity\Order $Order, $formData)
344
    {
345 3
        log_info('受注管理通知メール送信開始');
346
347 3
        $body = $this->app->renderView('Mail/order.twig', array(
348 3
            'header' => $formData['header'],
349 3
            'footer' => $formData['footer'],
350 3
            'Order' => $Order,
351
        ));
352
353 3
        $message = \Swift_Message::newInstance()
354 3
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] ' . $formData['subject'])
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
355 3
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
356 3
            ->setTo(array($Order->getEmail()))
357 3
            ->setBcc($this->BaseInfo->getEmail01())
358 3
            ->setReplyTo($this->BaseInfo->getEmail03())
359 3
            ->setReturnPath($this->BaseInfo->getEmail04())
360 3
            ->setBody($body);
361
362 3
        $event = new EventArgs(
363
            array(
364 3
                'message' => $message,
365 3
                'Order' => $Order,
366 3
                'formData' => $formData,
367 3
                'BaseInfo' => $this->BaseInfo,
368
            ),
369 3
            null
370
        );
371 3
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_ADMIN_ORDER, $event);
372
373 3
        $count = $this->app->mail($message);
374
375 3
        log_info('受注管理通知メール送信完了', array('count' => $count));
376
377 3
        return $count;
378
    }
379
380
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
introduced by
Doc comment for parameter "$reset_url" missing
Loading history...
381
     * Send password reset notification mail.
382
     *
383
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
384
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
385 2 View Code Duplication
    public function sendPasswordResetNotificationMail(\Eccube\Entity\Customer $Customer, $reset_url)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
386
    {
387 2
        log_info('パスワード再発行メール送信開始');
388
389 2
        $body = $this->app->renderView('Mail/forgot_mail.twig', array(
0 ignored issues
show
introduced by
Add a comma after each item in a multi-line array
Loading history...
390 2
            'Customer' => $Customer,
391 2
            'reset_url' => $reset_url
392
        ));
393
394 2
        $message = \Swift_Message::newInstance()
395 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のご確認')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
396 2
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
397 2
            ->setTo(array($Customer->getEmail()))
398 2
            ->setBcc($this->BaseInfo->getEmail01())
399 2
            ->setReplyTo($this->BaseInfo->getEmail03())
400 2
            ->setReturnPath($this->BaseInfo->getEmail04())
401 2
            ->setBody($body);
402
403 2
        $event = new EventArgs(
404
            array(
405 2
                'message' => $message,
406 2
                'Customer' => $Customer,
407 2
                'BaseInfo' => $this->BaseInfo,
408 2
                'resetUrl' => $reset_url,
409
            ),
410 2
            null
411
        );
412 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_PASSWORD_RESET, $event);
413
414 2
        $count = $this->app->mail($message);
415
416 2
        log_info('パスワード再発行メール送信完了', array('count' => $count));
417
418 2
        return $count;
419
    }
420
421
    /**
0 ignored issues
show
introduced by
Doc comment for parameter "$Customer" missing
Loading history...
introduced by
Doc comment for parameter "$password" missing
Loading history...
422
     * Send password reset notification mail.
423
     *
424
     * @param $Customer 会員情報
0 ignored issues
show
introduced by
Missing parameter name
Loading history...
425
     */
0 ignored issues
show
introduced by
Missing @return tag in function comment
Loading history...
426 2 View Code Duplication
    public function sendPasswordResetCompleteMail(\Eccube\Entity\Customer $Customer, $password)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
427
    {
428 2
        log_info('パスワード変更完了メール送信開始');
429
430 2
        $body = $this->app->renderView('Mail/reset_complete_mail.twig', array(
431 2
            'Customer' => $Customer,
432 2
            'password' => $password,
433
        ));
434
435 2
        $message = \Swift_Message::newInstance()
436 2
            ->setSubject('[' . $this->BaseInfo->getShopName() . '] パスワード変更のお知らせ')
0 ignored issues
show
Coding Style introduced by
Concat operator must not be surrounded by spaces
Loading history...
437 2
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
438 2
            ->setTo(array($Customer->getEmail()))
439 2
            ->setBcc($this->BaseInfo->getEmail01())
440 2
            ->setReplyTo($this->BaseInfo->getEmail03())
441 2
            ->setReturnPath($this->BaseInfo->getEmail04())
442 2
            ->setBody($body);
443
444 2
        $event = new EventArgs(
445
            array(
446 2
                'message' => $message,
447 2
                'Customer' => $Customer,
448 2
                'BaseInfo' => $this->BaseInfo,
449 2
                'password' => $password,
450
            ),
451 2
            null
452
        );
453 2
        $this->eventDispatcher->dispatch(EccubeEvents::MAIL_PASSWORD_RESET_COMPLETE, $event);
454
455 2
        $count = $this->app->mail($message);
456
457 2
        log_info('パスワード変更完了メール送信完了', array('count' => $count));
458
459 2
        return $count;
460
    }
461
462
    /**
463
     * ポイントでマイナス発生時にメール通知する。
464
     *
465
     * @param Order $Order
466
     * @param int $currentPoint
0 ignored issues
show
introduced by
Expected 3 spaces after parameter type; 1 found
Loading history...
467
     * @param int $changePoint
0 ignored issues
show
introduced by
Expected 3 spaces after parameter type; 1 found
Loading history...
468
     */
469
    public function sendPointNotifyMail(\Eccube\Entity\Order $Order, $currentPoint = 0, $changePoint = 0)
470
    {
471
472
        $body = $this->app->renderView('Mail/point_notify.twig', array(
473
            'Order' => $Order,
474
            'currentPoint' => $currentPoint,
475
            'changePoint' => $changePoint,
476
        ));
477
478
        $message = \Swift_Message::newInstance()
479
            ->setSubject('['.$this->BaseInfo->getShopName().'] ポイント通知')
480
            ->setFrom(array($this->BaseInfo->getEmail01() => $this->BaseInfo->getShopName()))
481
            ->setTo(array($this->BaseInfo->getEmail01()))
482
            ->setBcc($this->BaseInfo->getEmail01())
483
            ->setReplyTo($this->BaseInfo->getEmail03())
484
            ->setReturnPath($this->BaseInfo->getEmail04())
485
            ->setBody($body);
486
487
        $this->app->mail($message);
488
    }
489
}
490