<?php

namespace App\Mail;

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

class Sendmail extends Mailable
{
    use Queueable, SerializesModels;

    public $emailBody;
    public $emailSubject;
    
    public function __construct($emailBody, $emailSubject, $logoPath)
    {
        $this->emailBody = $emailBody;
        $this->emailSubject = $emailSubject;
        $this->logoPath = $logoPath;
    }
    
    
    public function build()
{
    return $this->view('emails.sendMail',['emailBody'=>$this->emailBody, 'logoPath'=>$this->logoPath])->subject($this->emailSubject);
}

}
