1 | <?php |
||
2 | |||
3 | namespace Chuckbe\Chuckcms\Mail; |
||
4 | |||
5 | use Illuminate\Bus\Queueable; |
||
6 | use Illuminate\Mail\Mailable; |
||
7 | use Illuminate\Queue\SerializesModels; |
||
8 | |||
9 | class UserActivationMail extends Mailable |
||
10 | { |
||
11 | use Queueable; |
||
12 | use SerializesModels; |
||
0 ignored issues
–
show
introduced
by
Loading history...
|
|||
13 | |||
14 | public $mailData; |
||
15 | |||
16 | public $settings; |
||
17 | |||
18 | /** |
||
19 | * Create a new message instance. |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | public function __construct($mailData, $settings) |
||
24 | { |
||
25 | $this->mailData = $mailData; |
||
26 | $this->settings = $settings; |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Build the message. |
||
31 | * |
||
32 | * @return $this |
||
33 | */ |
||
34 | public function build() |
||
35 | { |
||
36 | return $this->from($this->mailData['from'], $this->mailData['from_name']) |
||
37 | ->to($this->mailData['to'], $this->mailData['to_name']) |
||
38 | ->subject('Activeer je account op '.$this->settings['domain']) |
||
39 | ->view('chuckcms::backend.mails.userActivationMail'); |
||
40 | } |
||
41 | } |
||
42 |