<?php

namespace App\Mail;

use Illuminate\Mail\Mailable;
use Illuminate\Mail\Mailables\Content;
use Illuminate\Mail\Mailables\Envelope;

class VerifyEmailMail extends Mailable
{
    public function __construct(
        public readonly string $verifyUrl,
        public readonly string $userName,
    ) {}

    public function envelope(): Envelope
    {
        return new Envelope(subject: 'Animexe — E-posta Adresini Doğrula');
    }

    public function content(): Content
    {
        return new Content(view: 'emails.verify-email');
    }
}
