1

我正在尝试使用 Spark Post 发送电子邮件

这是我得到的错误:

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

这是我的welcomeEmail.blade.php

<img src="{{ $message->embed(public_path() . '/images/logo.jpeg') }}" ) }}">

这是 WelcomeEmail.php

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

和控制器:

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

0 回答 0