PHP Basecamp 具有电子邮件回复功能

发布于 2024-10-11 03:59:03 字数 164 浏览 5 评论 0原文

我正在使用 Basecamp,对于客户来说,回复消息并在 Basecamp 中自动回复是一个非常好的功能。

我想知道这是怎么做到的,有人有什么想法吗?

我是一名 PHP CodeIgniter 开发人员,如果有人给我一些指导来对此进行一些研究,将会很有帮助。

谢谢!

I was using basecamp, and for clients to reply to a message and automatically replies to it in basecamp is a pretty nice feature.

I was wondering how it's done, anybody have any ideas?

I am a PHP CodeIgniter developer, would be helpful if somebody gave me some pointers to do some research into this..

Thank you !

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

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

发布评论

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

评论(2

苦行僧 2024-10-18 03:59:03

创建这种功能相当令人畏惧,但让我们尝试一下:

  • 您应该为每封发送的电子邮件提供某种标识,以便您知道它属于哪个消息/主题/对象。我相信 Basecamp 使用特殊的返回地址([电子邮件受保护])对于每条消息。
  • 每次有新消息发送到对象的收件箱时,读取其内容并匹配此行上方 ====== 回复 ===== 上方的所有数据。检查发件人的电子邮件地址,验证是否允许用户向该对象发帖、写入该对象并删除消息。你可以检查你的邮件服务器是否有某种钩子支持,每次有新消息进来时都会触发它。或者,你可以每隔几分钟将其作为一个 cron 作业运行(但这不是很有效,正如你想象的那样) )。

就我个人而言,我一直想为传入邮件服务器创建一个 Node.JS 实现,但我还没有想到它(但请查看 这个 GitHub 项目 以获得一些灵感。)

Creating this kind of a functionality is quite daunting, but let's give it a try:

  • You should have some sort of identification for each e-mail send, so you know to which message/topic/object it belongs. I believe Basecamp is using a special return-address ([email protected]) for each message.
  • Every time a new message is delivered to the object's inbox, read it contents and match all data above the ====== reply above this line =====. Check the sender's e-mail address, verify if the user is allowed to post to this object, write to the object and delete the message. You could check if you mail server has some kind of hook support, that fires every time a new messages comes in. Alternatively, you could run this as a cron-job every few minutes (but this is not very efficient, as you may imagine).

Personally, I've been wanting to make a Node.JS implementation of the incoming mail server, but I haven't come around to it yet (but check out this GitHub project for some inspiration.)

肥爪爪 2024-10-18 03:59:03

我开始使用 SendGrid 来处理解析传入的电子邮件。它工作得非常好。

I started using SendGrid to handle parsing incoming e-mails. It works very nicely.

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