我想创建包含多个附件的.eml格式的电子邮件文件。附件已生成且附件内容正确。但附件始终以.dat格式出现,文件名为“ATT00001”、“ATT0002”等目前我正在遵循thisstackoverflowquestion中给出的解决方案我的代码如下PHPforeach($reportsas$pdf){$attachment=file_get_contents("auto_report_attachments\\Template_Attachment.eml");$attachment=str_replace("TEMPLATE_MIME_TYPE",$pdf['type'],$atta