如何设置保管箱?
大家好,我的公司要求我们在应用程序中设置一个保管箱功能,有点像我们在高层建筑中看到的那样。这个想法是,当创建帐户时,将自动为每个用户创建一个保管箱“电子邮件”,用户将向该保管箱地址发送电子邮件,并根据电子邮件,内容将作为帖子、任务添加到系统中,或注释,甚至作为附件。
像这样的保管箱是如何自动设置的 - 我在这里使用 php?
编辑======
我会尽力详细说明。
一个保管箱,可以说是在我的网站上创建了一个用户。他将获得一个这样的电子邮件 ID:
dropbox@[someuser id].mywebsite.com
然后他可以使用任何电子邮件程序向该地址发送一封电子邮件,该电子邮件的内容最终将出现在他的帐户中。想象一下能够通过发送电子邮件来添加博客文章。这就是我需要努力的想法。
Hi guys my company requires that we set up in our application a dropbox feature kinda like what we see in highrise implemented. The idea is that when an account is created - automatically for each user a dropbox 'email' would be created and users would send emails to that dropbox address and based upon the email teh content would be added to the system as a post, a task, or a note, or even as an attachment.
How are dropboxes like this set up automatically - I'm using php here?
EDIT ======
I'll try to elaborate.
A dropbox in the sense that lets say a user is created at my website. He would be given an email id of the kind:
dropbox@[someuser id].mywebsite.com
He could then send an email using any email program to the address and the contents of this email would end up in his account. Think of being able to add a blog post by sending an email. Thats the idea I need to work on.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是设置一个捕获所有电子邮件地址 - 然后设置一个到 PHP 文件的管道,该文件将从“收件人”电子邮件地址中提取帐户 ID 并处理其他所有内容(提取附件、将数据插入到数据库)。
我之前已经这样做过,所以如果您有任何具体信息,请告诉我,但设置起来相当简单。
The easiest way to do it is to set up a catch all email address - then setup a pipe to a PHP file which will extract the account ID from the 'to' email address and handle everything else (extracting the attachment, inserting the data to the database).
I've done this before, so if you've got anything specific, let me know, but it's fairly simple to set up.