mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-04-22 19:02:11 +00:00
41 lines
744 B
PHP
41 lines
744 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class ContactEmail extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
private $template = array();
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($template)
|
|
{
|
|
$this->template = $template;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this
|
|
->from('pouet@avior.me')
|
|
->to('pouet@avior.me')
|
|
->view('emails/contact')
|
|
->with($this->template)
|
|
;
|
|
}
|
|
}
|