Raffales-LMS/app/Mail/SendContactInfo.php
2024-04-16 15:43:24 +05:45

35 lines
676 B
PHP

<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class SendContactInfo 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($this->data['email_address'], $this->data['full_name'])->view('mail.contact',compact('data'));
}
}