This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

susana.o.santos29841
susana.o.santos29841

Hello, I'm trying to send an email but I'm getting the follow error

"No hint path defined for [Me.MyPlugin]." on line 112 of C:\wamp64\www\laravel\install-master\vendor\laravel\framework\src\Illuminate\View\FileViewFinder.php

My view is at [root]\plugins\unimedrio\shiatsu\views\mail\confirma_agendamento.htm like docs teachs

Does anyone knows where is my mistake? I've already google it but haven't found anything.

susana.o.santos29841
susana.o.santos29841

According to laracasts the propper way of setting up the email is

    Mail::send(['html'=>'Me.MyPlugin::mail.myTemplate'], $vars, function($message) {
        $message->to($email,$nome);
        $message->subject($subject);
    });

Mail::send(['html'=>'Me.MyPlugin::mail.myTemplate'] ... instead of the way is written at docs Mail::send('Me.MyPlugin::mail.myTemplate' ...

My e-mail still not works, but this error is solved and now it seems to be an config problem.

susana.o.santos29841
susana.o.santos29841

No developer should spend 3 days in order to set up an e-mail. October'docs should improve this part

As on the following question stackoverflow

The propper way of passing a variable to Mail::send is with "use" parameter

Mail::send(['html'=>'Me.MyPlugin::mail.myTemplate'], $vars, function($message), use($detalhes) {
    $message->to($setalhes['email'],$detalhes['nome']);
    $message->subject($detalhes['subject']);
});

I hope this helps someone in the future

pain-spark50564
pain-spark50564

To com esse problema, pode me ajudar moça ?

1-4 of 4

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.