php - Laravel Mail attach binary data -


is there way attach binary data file?

\mail::send('test', [], function ($message) {       $message->to('xxxxxx.@xx.com', 'x x')->subject('test');       $message->attach($file_binary_data); }); 

i have checked this, email didn't send. gave blank page no errors.

1, mail api based drivers such mailgun , mandrill simpler , faster smtp servers. should register mailgun or mandrill account firstly, or use mail smtp (you can smtp info in email settings)

2, 'test' view file must exist in 'resources/views' directory.

3, $file_binary_data must exist in local file system.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -