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/netwerkbrabant.komma.pro/app/Mail/WeFactErrorMail.php
<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Http\Request;
use Illuminate\Queue\SerializesModels;

class WeFactErrorMail extends ConfigurableMailable
{
    use Queueable, SerializesModels;

    /**@var array $weFactResponse */
    private $weFactResponse;

    /**
     * Create a new message instance that represents a mail containing information about an exception
     *
     * @param array $weFactResponse
     */
    public function __construct(array $weFactResponse)
    {
        $this->weFactResponse = $weFactResponse;
        parent::__construct();
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        //Build a subject
        $subject = 'WeFact error mail';

        //Set from and to
        $this->from(\Config::get('mail.from.address'), \Config::get('mail.from.name'));
        $this->to(\Config::get('mail.admin.address'))->subject($subject);

        // Return a view for the message
        return $this->view('emails.weFactError', $this->weFactResponse);
    }
}