mardi 28 mars 2017

Laravel 5.2 email attatchment

I have a file in storage/invoice/filename.pdf

$data=[
 'billing_filepath'=>storage_path('/invoice/filename.pdf');,
 'invoice.pdf'];

I used laravel Mail function, Email send success, but attachment was crashed. How can I fixed it.

$message->attachData($data['billing_filepath'], data['billing_file_name']);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire