我正在尝试使用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());