PHP - 如何将数据库中的内容添加到时事通讯中?
嘿伙计们。我需要学校项目的帮助。本质上,我需要编写一个发送新闻通讯的程序。我可以发送时事通讯和其他内容,但我遇到的主要问题是时事通讯需要包含数据库中包含的内容。我究竟如何绘制这些东西并将它们放入时事通讯中?大部分内容需要使用 PHP,但如果需要,也可以使用 Java 等。另外,我无法在我的学校服务器部分安装任何内容,因此我无法使用任何 CMS 之类的东西。
Hey guys. I need help for a project for school. Essentially, I need to write a program that sends newsletters. I can send the newsletters and stuff, but the main issue I'm having is that the newsletter needs to contain things that are contained in a database. How exactly do I draw those things and put them into a newsletter? The bulk of it needs to be in PHP, but Java and stuff can be used, if needed. Also, I cant install anything on my portion of the schools server, so I cant use any CMS's and stuff.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非你写这篇文章是为了娱乐和学习,否则不要这样做。
您的 IP 将会被列入黑名单,并且会遇到很多问题。如果您希望成功,您需要遵循一些法规(CAN SPAM 等)和最佳实践(SPF、域密钥等)。否则,您将无法收到任何邮件,并且可能无法收到 ISP 的电话。
您如何处理取消订阅?您将如何处理退回邮件?邮件循环?将问题地址列入黑名单?这不是一个简单的话题。
您最好购买电子邮件管理系统;。
Lyris 制作了一个您可以安装的产品。还有其他免费/开源项目(majordomo、mailman 等)。
勇敢的电子邮件发件人请注意这些话!
Unless you are writing this for fun and learning, don't do it.
You will get your IP blacklisted and have lots of problems. there are regulations (CAN SPAM etc) and best practices (SPF, domain keys etc) you need to follow if you want this to be successful. Otherwise you will not get any of your mail delivered, and possibly a call form your ISP.
How do you handle unsubscribes? How are you going to handle bounces? Mail loops? Blacklisting of problem addresses? This is not a simple topic.
You would be better off purchasing a email management system;.
Lyris makes one that you can install. There are other free/open source projects as well (majordomo, mailman etc).
Heed these words intrepid e-mailer!
嘿,您在从数据库查询内容时遇到基本问题吗?
Hey, do you have basic problems with querying your content from your database?