Mails, Strono, filter

This commit is contained in:
Kevin Adametz 2020-03-26 09:48:19 +01:00
parent f53f17f9c1
commit 62e84637b6
99 changed files with 2409 additions and 474 deletions

View file

@ -12,23 +12,39 @@ class MailSendInfo extends Mailable
{
use Queueable, SerializesModels;
protected $travel_user_booking_fewo;
public $subject;
protected $content;
public $files;
public function __construct($subject, $content)
public function __construct($subject, $content, $files = [])
{
$this->subject = $subject;
$this->content = $content;
$this->files = $files;
}
public function build()
{
return $this->view('emails.content')->with([
$message = $this->view('emails.content')->with([
'content' => $this->content,
'greetings' => __('Best regards'),
]);
/* foreach ($this->files as $file) {
$message->attach($file->getPath(),[
'as' => $file->original_name,
'mime' => $file->mine,
]); // attach each file
}*/
foreach ($this->files as $file) {
$message->attach((string) $file->getPath()); // attach each file
}
return $message;
}
}