1
0
mirror of https://github.com/freescout-helpdesk/freescout.git synced 2024-11-25 11:52:29 +01:00
freescout/app/Mail/Test.php
2018-11-12 09:12:57 +00:00

36 lines
696 B
PHP

<?php
namespace App\Mail;
use Illuminate\Mail\Mailable;
class Test extends Mailable
{
public $mailbox;
/**
* Create a new message instance.
*/
public function __construct($mailbox = null)
{
$this->mailbox = $mailbox;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$message = $this->subject(__(':app_name Test Email', ['app_name' => \Config::get('app.name')]));
if ($this->mailbox) {
$message->view('emails/user/test', ['mailbox' => $this->mailbox]);
} else {
$message->view('emails/user/test_system');
}
return $message;
}
}