Conditions | 5 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
46 | public function send() { |
||
47 | Mail::send("crudbooster::emails.blank", ['content' => $this->content], function ($message) { |
||
48 | $message->priority(1); |
||
49 | $message->to($this->to_email); |
||
50 | $message->from($this->sender_email, $this->sender_name); |
||
51 | |||
52 | if (isset($this->cc_email)) { |
||
53 | $message->cc($this->cc_email); |
||
54 | } |
||
55 | |||
56 | if (isset($this->attachments) && count($this->attachments)) { |
||
57 | foreach ($this->attachments as $attachment) { |
||
58 | $message->attach($attachment); |
||
59 | } |
||
60 | } |
||
61 | |||
62 | $message->subject($this->subject); |
||
63 | }); |
||
65 | } |