Raffales-LMS/app/Mail/StudentEnquiryMail.php

39 lines
918 B
PHP
Raw Normal View History

2024-04-16 09:58:24 +00:00
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class StudentEnquiryMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($data, $emaildeliver, $registration)
{
$this->data = $data;
$this->emaildeliver = $emaildeliver;
$this->registration = $registration;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$data = $this->data;
$emaildeliver = $this->emaildeliver;
$registration = $this->registration;
return $this->from($this->data['email'], $this->data['name'])->view('mail.registrationenquiry',compact('data','emaildeliver','registration'));
}
}