Attach excel stream to swiftmailer message?
问题 I'm trying to attach an Excel file in a SwiftMailer message. The trick is that I don't want to save the excel file and then attach it and then delete it, instead I just want to generate the excel and attach that to the message. This function allows to attach a OutputByteStream /** * Create a new Attachment. * * @param string|Swift_OutputByteStream $data * @param string $filename * @param string $contentType * * @return Swift_Mime_Attachment */ public static function newInstance($data = null,