jeudi 27 juillet 2017

Laravel mail cannot attach a image?

I am trying to send a email using Spark Post

This is an error I am getting:

Swift_IoException 
Unable to open file for reading [C:\xampp\htdocs\liveandnow\public/images/logo.jpeg]

This is my welcomeEmail.blade.php

<img src="" ) }}">

This is WelcomeEmail.php

public function build()
{
    return $this->from('support@dev.dsd.com')
                ->view('emails.welcomeEmail');
}

and Controller:

Mail::to($request->user())->send(new WelcomeEmail());



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2v2wbpS
via IFTTT

Aucun commentaire:

Enregistrer un commentaire