38 lines
848 B
PHP
38 lines
848 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Mail\Mailables\Content;
|
|
use Illuminate\Mail\Mailables\Envelope;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class TenantSetupInvitationMail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
public string $companyName;
|
|
public string $setupUrl;
|
|
|
|
public function __construct(string $companyName, string $setupUrl)
|
|
{
|
|
$this->companyName = $companyName;
|
|
$this->setupUrl = $setupUrl;
|
|
}
|
|
|
|
public function envelope(): Envelope
|
|
{
|
|
return new Envelope(
|
|
subject: 'Set Up Your Administrator Account for ' . $this->companyName,
|
|
);
|
|
}
|
|
|
|
public function content(): Content
|
|
{
|
|
return new Content(
|
|
markdown: 'emails.tenant-setup-invitation',
|
|
);
|
|
}
|
|
}
|