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
Post a Comment