mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Update emails
This commit is contained in:
@@ -4,41 +4,43 @@ declare(strict_types=1);
|
||||
|
||||
namespace App\Mail;
|
||||
|
||||
use App\Mail\Concerns\HasBrandedSubject;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Mail\Mailable;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
|
||||
class ForgottenPassword extends Mailable
|
||||
{
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public mixed $user;
|
||||
use HasBrandedSubject, Queueable, SerializesModels;
|
||||
|
||||
public string $resetLink;
|
||||
|
||||
private mixed $siteEmail;
|
||||
public string $site;
|
||||
|
||||
private mixed $siteTitle;
|
||||
public ?string $preheader;
|
||||
|
||||
private string $siteEmail;
|
||||
|
||||
/**
|
||||
* Create a new message instance.
|
||||
*/
|
||||
public function __construct(string $resetLink)
|
||||
{
|
||||
$this->resetLink = $resetLink;
|
||||
$this->siteEmail = config('mail.from.address');
|
||||
$this->siteEmail = (string) config('mail.from.address');
|
||||
$siteName = config('app.name');
|
||||
$this->siteTitle = is_array($siteName) ? (string) ($siteName[0] ?? '') : (string) ($siteName ?? '');
|
||||
$this->site = is_array($siteName) ? (string) ($siteName[0] ?? '') : (string) ($siteName ?? '');
|
||||
$this->preheader = 'Reset your password using the secure link inside.';
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the message.
|
||||
*
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function build(): static
|
||||
{
|
||||
return $this->from($this->siteEmail)->subject('Forgotten password reset')->view('emails.forgottenPassword')->with(['resetLink' => $this->resetLink, 'site' => $this->siteTitle]);
|
||||
return $this->from($this->siteEmail)
|
||||
->brandedSubject('Reset your password')
|
||||
->markdown('emails.markdown.forgottenPassword', [
|
||||
'resetLink' => $this->resetLink,
|
||||
'site' => $this->site,
|
||||
'preheader' => $this->preheader,
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user