. */ declare(strict_types=1); namespace FireflyIII\Mail; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; class InvitationMail extends Mailable { use Queueable; use SerializesModels; public string $admin; public string $host; public string $invitee; public string $url; /** * OAuthTokenCreatedMail constructor. * * @param string $invitee * @param string $admin * @param string $url */ public function __construct(string $invitee, string $admin, string $url) { $this->invitee = $invitee; $this->admin = $admin; $this->url = $url; $this->host = parse_url($url, PHP_URL_HOST); } /** * Build the message. * * @return $this */ public function build(): self { return $this ->markdown('emails.invitation') ->subject((string)trans('email.invite_user_subject')); } }