我正在尝试在电子邮件中显示从LARAVEL传输的图像(在我的Web应用程序中上传)。收到的电子邮件图片:目前,我已实现将图像显示为电子邮件的附件,但我的目标是将图像显示为电子邮件的封面照片。电子邮件的内容在catalogEmail.blade.php文件中开发。CatalogController.phofunction Sendcatalog (Request $request, $url){ $this->validate($request, [ 'email' => 'required|email' ]); $language=Language::where('url', '=', $url)->first(); if(count($language)==0){ abort(404); } $emailStorage= new EmailStorage; $emailStorage -> email = $request -> input('email'); $emailStorage->save(); $catalog=Catalog::first(); $data = array( 'email' => $request->email, 'filename' => $catalog->file_name, 'title' => $catalog->title, 'content' => $catalog->content, 'post_thumbnail' => $catalog->post_thumbnail, 'post_thumbnail2' => $catalog->post_thumbnail2, ); $visitorEmail=$request->email; Mail::to('kajoswiss@gmail.com')->send(new SendCatalogInfo($data)); Mail::to($visitorEmail)->send(new SendCatalog($data)); return back()->with('successPost', 'You will get soon catalog on your email address');}
1 回答
- 1 回答
- 0 关注
- 202 浏览
添加回答
举报
0/150
提交
取消