mirror of
https://github.com/freescout-helpdesk/freescout.git
synced 2024-11-26 04:12:31 +01:00
37 lines
688 B
PHP
37 lines
688 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Mail;
|
||
|
|
||
|
use App\Option;
|
||
|
use Illuminate\Mail\Mailable;
|
||
|
|
||
|
class UserInvite extends Mailable
|
||
|
{
|
||
|
/**
|
||
|
* User to whom invitation is sent.
|
||
|
*/
|
||
|
public $user;
|
||
|
|
||
|
/**
|
||
|
* Create a new message instance.
|
||
|
*/
|
||
|
public function __construct($user)
|
||
|
{
|
||
|
$this->user = $user;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Build the message.
|
||
|
*
|
||
|
* @return $this
|
||
|
*/
|
||
|
public function build()
|
||
|
{
|
||
|
$message = $this->subject(__('Welcome to :company_name', ['company_name' => Option::get('company_name')]))
|
||
|
->view('emails/user/user_invite')
|
||
|
->text('emails/user/user_invite_text');
|
||
|
|
||
|
return $message;
|
||
|
}
|
||
|
}
|