-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathComplaintNotificationExternal.php
More file actions
37 lines (31 loc) · 1.01 KB
/
ComplaintNotificationExternal.php
File metadata and controls
37 lines (31 loc) · 1.01 KB
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
34
35
36
37
<?php
namespace App\Notifications;
use App\Notifications\ComplaintNotification;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Support\Facades\Lang;
/**
* A notification to be sent when the legal complaint form is being used.
*/
class ComplaintNotificationExternal extends ComplaintNotification
{
/**
* Build the mail representation of the notification.
*
* @param mixed $notifiable
* @return \Illuminate\Notifications\Messages\MailMessage
*/
public function toMail($notifiable)
{
$name = $this->name;
if (empty($name)) {
$name = 'None';
}
$mailFrom = config('app.complaint-mail-sender');
$mailSubject = config('app.name') . ': Report of Illegal Content';
return (new MailMessage)
->from($mailFrom)
->subject($mailSubject)
->line(Lang::get('Your message via the wikibase.cloud form for reporting illegal content has been submitted.'))
->line('---');
}
}