Raffales-LMS/app/Mail/StudentNotifyMail.php

35 lines
705 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 StudentNotifyMail extends Mailable
{
use Queueable, SerializesModels;
/**
* Create a new message instance.
*
* @return void
*/
public function __construct($data)
{
$this->data = $data;
}
/**
* Build the message.
*
* @return $this
*/
public function build()
{
$data = $this->data;
return $this->from("webmaster@accessedu.net", "Access Education Network - Event Registrations")->view('mail.notifystudent',compact('data'));
}
}