mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
dde1cd6cfb
* Fixes for MakesHash trait * Client List DataTables * Data table dependencies * Confirmation URLs * Wire up firing events for notification emails
40 lines
820 B
PHP
40 lines
820 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use App\Models\User;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class VerifyUser extends Mailable implements ShouldQueue
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public $user;
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct(User $user)
|
|
{
|
|
$this->user = $user;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
|
|
return $this->from('turbo124@gmail.com') //todo
|
|
->subject(__trans('texts.confirmation_subject'))
|
|
->markdown('email.auth.verify', ['user' => $this->user])
|
|
->text('email.auth.verify_text');
|
|
}
|
|
}
|