TestMailCommand::handle()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 8
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
namespace BeyondCode\HeloLaravel;
4
5
use Illuminate\Console\Command;
6
7
class TestMailCommand extends Command
8
{
9
    protected $signature = 'helo:test';
10
11
    protected $description = 'Send a test mail to your local HELO application.';
12
13
    public function handle(\Illuminate\Contracts\Mail\Mailer $mailer)
14
    {
15
        $this->info("Sending a test mail to HELO.");
16
17
        $mailer->send((new TestMail())->to('[email protected]'));
18
19
        $this->info("Check in HELO if it arrived!");
20
    }
21
}
22