Linux server.jmdstrack.com 3.10.0-1160.119.1.el7.tuxcare.els10.x86_64 #1 SMP Fri Oct 11 21:40:41 UTC 2024 x86_64
/ home/ jmdstrac/ public_html/ sabc/ app/ Mail/ |
|
<?php namespace App\Mail; use Carbon\Carbon; use Illuminate\Bus\Queueable; use Illuminate\Mail\Mailable; use Illuminate\Queue\SerializesModels; use Illuminate\Contracts\Queue\ShouldQueue; class Send extends Mailable { use Queueable, SerializesModels; public $info; public $attach; public $username; public $site; public $finaljour; public $finalnuit; /** * Create a new message instance. * * @return void */ public function __construct($attach,$info,$username, $site, $finaljour, $finalnuit) { $this->username = $username; $this->info = $info; $this->attach = $attach; $this->site = $site; $this->finaljour = $finaljour; $this->finalnuit = $finalnuit; } /** * Build the message. * * @return $this */ public function build() { $mytime2 = Carbon::now()->toDateTimeString(); $date = date_parse($mytime2); $anne = $date['year']; $mois = $date['month']; $jour = $date['day']; $heure = $date['hour']; $minute = $date['minute']; $seconde = $date['second']; $nom = $this->info."-poijour.pdf"; $nom2 = $this->info."-assetreport.pdf"; return $this->markdown('emails.contact')->attachData($this->attach, $nom2); } }