5 months ago

mail file attachment in laravel

Posted 5 months ago by Van1310

any suggest how to mail with attachment

error => Swift_IoException in FileByteStream.php line 144:

Unable to open file for reading [TZSGVXjIhm6K45D3owlzoDngoieEpG.jpg]

$files = Input::file('attach');

    $picName = str_random(30) . '.' . $files->getClientOriginalExtension();

    $files->move(base_path() . '/public/email/', $picName);

    $email=new Email(array(

\Mail::send('email.paymentmail', ["name" => "demo"], function($message) use($email)

Please sign in or create an account to participate in this conversation.