HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/zelfverkopen.komma.pro/app/Mail/DefaultMail.php
<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Contracts\Queue\ShouldQueue;

class DefaultMail extends Mailable
{
    use Queueable, SerializesModels;

    protected $viewName;
    protected $subjectName;
    protected $email;
    protected $replyToEmail;
    protected $mailData;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($view, $subject, $to, $replyTo, $data)
    {
        $this->viewName = $view;
        $this->subjectName = $subject;
        $this->email = $to;
        $this->replyToEmail = $replyTo;
        $this->mailData = $data;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view($this->viewName)
            ->subject($this->subjectName)
            ->to($this->email)
            ->replyTo($this->replyToEmail)
            ->with($this->mailData);
    }
}