I want to form a file (PHPExcel) and mail it as an attachment (PHPMailer) without server storing, is it possible?
I'm aware of the possibility of forming/creating file in PHPExcel and sending it as an attachment thru PHPMailer here. But it works thru/by writing a file somewhere in a server. Poor as far as server resources consumption. PHPExcel allows to output this way directly without saving on a server:
$objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel);
ob_end_clean();
header('Content-Type: application/vnd.ms-excel');
...
$objWriter->save('php://output');
Is it possible (and how) to attach it to email on the fly similar as save('php://output')?