52 lines
No EOL
1.6 KiB
PHP
52 lines
No EOL
1.6 KiB
PHP
<?php
|
|
namespace App\Mail;
|
|
|
|
use App\User;
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
|
|
class MailVerifyContact extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
protected $confirmation_code;
|
|
public $subject;
|
|
|
|
|
|
public function __construct($confirmation_code, User $user)
|
|
{
|
|
|
|
$this->confirmation_code = $confirmation_code;
|
|
$this->user = $user;
|
|
$this->subject = __('Verify your Data and E-Mail Address');
|
|
|
|
}
|
|
|
|
|
|
public function build()
|
|
{
|
|
$salutation = __('Dear customer').",";
|
|
if($this->user->account){
|
|
if($this->user->account->salutation == "mr"){
|
|
$salutation = __('Dear Sir')." ".$this->user->account->last_name.",";
|
|
}else{
|
|
$salutation = __('Dear Mrs')." ".$this->user->account->last_name.",";
|
|
}
|
|
}
|
|
|
|
return $this->view('emails.auth')->with([
|
|
'url' => route('register_verify', $this->confirmation_code),
|
|
'salutation' => $salutation,
|
|
'button' => __('Verify your Data and E-Mail Address'),
|
|
'copy1line' => __('We have data about you stored in our JACKON Infomanager. Please follow the link below to verify your email address.You can also change or delete your data.'),
|
|
'copy2line' => __('Or copy this link into the address bar of your browser.'),
|
|
'copy3line' => __('For further questions we are happy to help you.'),
|
|
'greetings' => __('Best regards'),
|
|
'sender' => __('your mivita.care team'),
|
|
|
|
|
|
]);
|
|
}
|
|
} |