I currently have this
file_put_contents($tmpfile, $attachments[0][\'body\']); $objPHPExcel = PHPExcel_IOFactory::load($tmpfile);
The file I
PHPExcel provides no direct method for loading from a string rather than from a file. As an alternative to actually creating a physical filesystem file for $tmpfile though, you might be able to use php://memory or php://temp
php://temp