Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel mail Swift_IoException Unable to open file for reading

Im trying to send attachment in email it give below error but when i check given url file is there and download work.

Swift_IoException in FileByteStream.php line 144:
Unable to open file for reading [http://sendemail.domain.com/attachment/warburg_brochure.pdf]
like image 289
Shahid Chaudhary Avatar asked Nov 08 '22 10:11

Shahid Chaudhary


1 Answers

I too had the same issue, check the mime type of file you are attaching. To debug more try different extension files.

like image 142
Rashmi Jain Avatar answered Nov 15 '22 10:11

Rashmi Jain