mirror of https://github.com/pixelfed/pixelfed.git
38 lines
760 B
PHP
38 lines
760 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Mail;
|
||
|
|
||
|
use Illuminate\Bus\Queueable;
|
||
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
use Illuminate\Queue\SerializesModels;
|
||
|
|
||
|
class AdminMessage extends Mailable
|
||
|
{
|
||
|
use Queueable, SerializesModels;
|
||
|
|
||
|
protected $msg;
|
||
|
/**
|
||
|
* Create a new message instance.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __construct($msg)
|
||
|
{
|
||
|
$this->msg = $msg;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
$admins = config('pixelfed.domain.app') . ' admins';
|
||
|
return $this->markdown('emails.notification.admin_message')
|
||
|
->with(['msg' => $this->msg])
|
||
|
->subject('Message from ' . $admins);
|
||
|
}
|
||
|
}
|