forked from Catfeeds/ssrpanel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnodeCrashWarning.php
More file actions
33 lines (27 loc) · 822 Bytes
/
nodeCrashWarning.php
File metadata and controls
33 lines (27 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;
class nodeCrashWarning extends Mailable
{
use Queueable, SerializesModels;
protected $websiteName;
protected $nodeName;
protected $nodeServer;
public function __construct($websiteName, $nodeName, $nodeServer)
{
$this->websiteName = $websiteName;
$this->nodeName = $nodeName;
$this->nodeServer = $nodeServer;
}
public function build()
{
return $this->view('emails.nodeCrashWarning')->subject('节点宕机警告')->with([
'websiteName' => $this->websiteName,
'nodeName' => $this->nodeName,
'nodeServer' => $this->nodeServer
]);
}
}