Mails, Strono, filter
This commit is contained in:
parent
f53f17f9c1
commit
62e84637b6
99 changed files with 2409 additions and 474 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue