0

I am beginner in Laravel. I use in my project Laravel 5.8:

I have this code:

$mailTitle = "Masz wiadomość ze strony " . env('APP_NAME');
        $message = "
        <b>Dane wiadomości:</b> $dateTime [IP: $ip]<br/>
        <b>Tytuł wiadomości:</b> $title<br/>
        <b>Imię:</b> $userName<br/>
        <b>Adres email:</b> $userEmail<br/>
        <b>Wiadomość:</b> $txt<br/>";

        $data['slot']= $message;
        $data['adminEmail']= $adminEmail;
        $data['title']= $mailTitle;
        $data['user']= $userEmail;
        Mail::send('vendor.mail.html.message', $data, function($message) use($data) {
            $message->to($data['adminEmail']);
            $message->subject($data['title']);
            $message->replyTo($data['user']);
            $message->from($data['user']);
        });

When I run this code I have error:

No hint path defined for [mail]. (View: /var/www/vanessa/resources/views/vendor/mail/html/message.blade.php)

How can I fix it?

trafgs
  • 41
  • 3
  • 8

1 Answers1

0

do you have blade in this path "vendor/mail/html/message.blade.php" you need to make a blade and set in it your mail message

Mustafa Goda
  • 109
  • 6