如何在 PHP 中将目录(服务器中)中的多个 pdf 附加到电子邮件附件
我制作了一个表单,可以将表单详细信息发送到数据库,然后将结果转换为 pdf (*pdfcrowd)。
我已将文件名(* pdf)保存在数据库中,并且 pdf 也保存在文件夹目录中。
一切正常。除了我不知道如何获取 pdf 文件。 用户将看到表格。我将提供一个复选框,当单击该复选框时,该行中的文件名应包含在电子邮件中附加的内容中。
我的数据库是Recipes,表:Recipe_list,保存文件名的字段是..“recipe_name”,pdf文件所在的文件夹位于“/recipes/”文件夹内。
我不明白“MIME”和其他有关电子邮件附件的内容。如果您能帮助我,我将不胜感激。
I made a form that can send form details to database then convert results to pdf (*pdfcrowd).
I have saved the filename(*of the pdf) inside the database and the pdf is saved inside a folder directory too.
Everything is working fine. EXCEPT that i'm stuck on how to get the pdf files.
The user is going to see the tables. I'll provide a checkbox and when the checkbox is clicked, the filename in the row should be included on what to attach in the email.
My database is Recipes, Table: Recipe_list, The field where filename is saved is.. "recipe_name" and the folder where the pdfs files are inside "/recipes/" folder.
I don't understand the "MIME" and other stuff about email attachment. I would appreciate if you can help me with this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以参考以下链接来完成此任务,
http://www.emanueleferonato.com/2008/07/22/sending-email-with-multiple-attachments-with-php/
这会非常有帮助给你。
谢谢。
you can refer below link for this task,
http://www.emanueleferonato.com/2008/07/22/sending-email-with-multiple-attachments-with-php/
this would be very much helpful to you.
Thanks.