通过向特定电子邮件地址发送邮件来添加博客

发布于 2024-09-27 08:05:01 字数 382 浏览 2 评论 0原文

对于我们的朋友网站,我想创建一个功能,我和我的朋友可以将电子邮件发送到特殊的电子邮件地址: [电子邮件受保护]。我想使用给定的主题作为博客标题,使用邮件正文作为博客条目。发送邮件的时间戳必须成为博客保存的时间戳(至少这个时间戳必须存储在数据库中)并且只能处理一组指定的邮件地址(因此它不是公共服务)。

但我不知道如何做到这一点。像这样的事情是由 cronjobs 和 imap 还是其他东西完成的?我正在收集关于如何实现这一点的想法。我并不是要求您提供完整的工作代码,但关于要求的一些建议会很好。

For our friends-site I want to create a function where I, and my friends, can send an email to a special emailadres: [email protected]. I want to use the given subject as the blog-title and the mail-body to be the blog-entry. The timestamp the mail was sent must become the timestamp the blog is saved (at least this timestamp must be stored in the database) and only a specified set of mailaddress can be handled (so it's not a public service).

But I don't have a clue how to do this. Are things like this done by cronjobs and imap or something? I'm collecting thoughts on how to realize this. I'm not asking you to provide a fully working code but some suggestions on the requirements would be nice.

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

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

发布评论

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

评论(1

ヤ经典坏疍 2024-10-04 08:05:01

cronjob 登录电子邮件地址,下载任何邮件,并根据时间戳发布它。

您将需要:

  • 秘密电子邮件地址。确保它是秘密的,因为发送的任何内容都会发布到
  • 博客引擎,您可以在外部操作它,对数据库模式有一个很好的了解,或者愿意侵入。
  • 熟练的脚本编写技能

Cronjobs 特别容易设置。我自己都对它如此简单感到惊讶。 不错的教程

A cronjob logs into the email address, downloads any mail, and posts it according to time stamp.

You will need:

  • Secret email address. Be sure it's secret because anything that gets sent will get posted
  • Blogging engine that you can either manipulate externally, have a decent idea of what the database schema looks like, or are willing to hack into.
  • Competent scripting skills

Cronjobs are particularly easy to setup. I was surprised myself at how simplistic it is. Decent tutorial.

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