File: /var/www/html/sarvodayahospital/app/Mail/PreventiveHealthCheckupMail.php
<?php
namespace App\Mail;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
class PreventiveHealthCheckupMail extends Mailable implements ShouldQueue
{
use Queueable, SerializesModels;
public $package;
public function __construct($package)
{
$this->package = $package;
}
public function build()
{
$name = config('mail.from.name');
$addressFrom = config('mail.from.address');
$subject = 'Preventive Health Package';
return $this->markdown('mail.php-mail')
->subject($subject)
->with([ 'package' => $this->package ]);
}
}