mirror of
https://github.com/Aviortheking/CA_LARAVEL.git
synced 2025-06-15 02:49:18 +00:00
Changmenet Gestion de Emails
+ ajout d'un script pour racourcir les commandes a lancer dans docker Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
40
app/Mail/ContactEmail.php
Normal file
40
app/Mail/ContactEmail.php
Normal file
@ -0,0 +1,40 @@
|
||||
<?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('email')
|
||||
->with($this->template)
|
||||
;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user