38 lines
789 B
PHP
38 lines
789 B
PHP
<?php
|
|
|
|
namespace App\Mail;
|
|
|
|
use Illuminate\Bus\Queueable;
|
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
|
use Illuminate\Mail\Mailable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
class SendFlyerFailed extends Mailable
|
|
{
|
|
use Queueable, SerializesModels;
|
|
|
|
private $data;
|
|
|
|
/**
|
|
* Create a new message instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __construct($data)
|
|
{
|
|
$this->data = (object) $data;
|
|
}
|
|
|
|
/**
|
|
* Build the message.
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function build()
|
|
{
|
|
return $this
|
|
->from('noreply@espri-restauration.fr', '[APP] Commerciaux - Espri Restauration')
|
|
->subject('[MAIL] Une erreur est survenue')
|
|
->view('sendflyerfailed', ['data' => $this->data]);
|
|
}
|
|
}
|