mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
7f6929d716
Updated mail notifications to set the HTML and plaintext views since before no plaintext version was being created. Closes #1182
32 lines
915 B
PHP
32 lines
915 B
PHP
<?php namespace BookStack\Notifications;
|
|
|
|
class ConfirmEmail extends MailNotification
|
|
{
|
|
public $token;
|
|
|
|
/**
|
|
* Create a new notification instance.
|
|
* @param string $token
|
|
*/
|
|
public function __construct($token)
|
|
{
|
|
$this->token = $token;
|
|
}
|
|
|
|
/**
|
|
* Get the mail representation of the notification.
|
|
*
|
|
* @param mixed $notifiable
|
|
* @return \Illuminate\Notifications\Messages\MailMessage
|
|
*/
|
|
public function toMail($notifiable)
|
|
{
|
|
$appName = ['appName' => setting('app-name')];
|
|
return $this->newMailMessage()
|
|
->subject(trans('auth.email_confirm_subject', $appName))
|
|
->greeting(trans('auth.email_confirm_greeting', $appName))
|
|
->line(trans('auth.email_confirm_text'))
|
|
->action(trans('auth.email_confirm_action'), baseUrl('/register/confirm/' . $this->token));
|
|
}
|
|
}
|