RoR 应用程序中的 Facebook 类似电子邮件上传功能

发布于 2024-12-01 02:36:44 字数 531 浏览 2 评论 0原文

我正在尝试在我的 RoR 应用程序中实现类似 facebook 的电子邮件上传功能。例如,我们可以向 facebook 为每个用户分配的某个虚拟地址发送电子邮件(例如,用户可以向 [电子邮件受保护]),所有附件将上传到用户的相册中。 我希望能够开发类似的功能,但我对一些选项感到困惑:

  1. 我认为 facebook 的做法是创建一个捕获所有并将所有电子邮件捕获到该特定捕获所有地址上的此类随机地址。我想知道是否有更好的方法将电子邮件发送到一个捕获所有地址,然后解析发送到的电子邮件?我使用 sendmail 作为 smtp。

  2. 是否有任何好的 RoR Gem,您个人使用过,可以达到良好的效果(我可以在论坛上到处看到 fetcher,但感觉不太好)。

提前致谢。

I am trying to implement facebook like email upload capability to my RoR app. For example we can send an email to some dummy address assigned by facebook per user (for example user can send email to [email protected]) and all the attachments would be uploaded to user's photo albums.
I want to be able to develop similar functionality and i were confused with a few options:

  1. I think that how facebook does is create a catch all and catch all the emails to such random address on that particular catch all address. I were wondering if there is a better to send the emails to a catch all address and then parsing the email to which this was sent ? I am using sendmail as a smtp.

  2. Is there are any good RoR Gem that you have used personally to good effect for such a functionality (I can see fetcher here and there on the forums but dont feel good with it).

Thanks in advance.

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

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

发布评论

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

评论(2

故乡的云 2024-12-08 02:36:44

捕获您正在谈论的所有地址的技巧是 [电子邮件受保护]。 Gmail 和默认安装的 postfix 将忽略 + 及其后面的字符串,电子邮件将被发送到 [电子邮件受保护],但如果您提取电子邮件,您可以看到“收件人”地址为 [电子邮件受保护]。您可以提取标识符并从那里开始。

不过我不确定这些宝石,没有使用过它们。

The trick with catch all address you are talking about is [email protected]. Gmail and the default installation of postfix will ignore + and the string following it and the email will be delivered to [email protected], but if you fetch the email, you can see the "to" address as [email protected]. You can extract the identifier and start from there on.

I am not sure about the gems though, haven't used them.

空心空情空意 2024-12-08 02:36:44

查看 http://cloudmailin.com/

您可以将其设置为您的域的所有地址,然后然后它会“POST”到您的应用程序中,您可以从那里处理它。

Take a look at http://cloudmailin.com/

You can set it up as a catch all address for your domain and then it does a 'POST' into your application where you can deal with it from there.

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