草庐IT

080107000800000609090108

全部标签

php - 附件名称和文件扩展名在电子邮件 *.eml 中不起作用

我想创建包含多个附件的.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