生成用于群发邮件的动态Word文档

发布于 2024-08-30 12:56:33 字数 262 浏览 0 评论 0原文

我需要使用 PHP 生成基于 Word 文档模型的群发邮件。 给出的是一个数据库,其中包含需要在我的单词模型中填充的地址和数据。 我想生成一个包含数据库中不同地址和字段内容的单词文档。

我们有一个 Linux 服务器,但 COM 对象不可用。

是否有现成的类可以做到这一点?您有使用过 PHPWord 的经验吗? 在这种情况下,最佳实践是什么?

在理想情况下,客户只需上传 Word 主文档,其中包含需要填写的字段,然后融合到包含整个邮件的多页 Word 文档。

I need to generate a mass mailing based on a word document model with PHP.
Given is a database with the adresses and the data that need to be filled in my word model.
I want to generate a single word document with the different adresses and field contents from the database.

We have a Linux server and the COM object is not avalaible.

Is there a ready to use class to do this? Did you had any experiance with PHPWord?
What is the best practice in this case?

In the ideal case the client should just upload th word master document, with the fields that need to be filled and then fusioned to a multiple pages word document containing the whole mailing.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟雨扶苏 2024-09-06 12:56:33

我不会使用 Microsoft Word 作为 HTML 电子邮件的模型。

创建一些 HTML 模板,然后使用 PHP 迭代数据库并替换 HTML 中的某些字段。

I wouldn't use Microsoft Word as a model for HTML emails.

Create some HTML templates, then use PHP to iterate through your database and replace certain fields in the HTML.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文