简体   繁体   English

电子邮件在rails3中创建新记录?

[英]Email creates new record in rails3?

I'm not really sure where to start with this one, but here is what I'm looking to do. 我不确定从哪个开始,但这是我想要做的。

Lets say you've registered at a website (yourwebsite.com). 假设您已在网站(yourwebsite.com)上注册。 Your username/email is joe@shmoe.com. 您的用户名/电子邮件是joe@shmoe.com。

If you email newrecord@yourwebsite.com, I'd like a new record created by your user (meaning you have to email it from a registered user's email - such as joe@shmoe.com). 如果您发送电子邮件至newrecord@yourwebsite.com,我希望您的用户创建一条新记录(这意味着您必须通过注册用户的电子邮件发送电子邮件 - 例如joe@shmoe.com)。

I'd also like to add some variables in the email body, that can be set to their respective fields in the new record. 我还想在电子邮件正文中添加一些变量,可以将它们设置为新记录中的各自字段。

Does anyone know if this is possible? 有谁知道这是否可能?

It's definitely possible - that functionality is available in basecamp. 这绝对是可能的 - 这个功能在basecamp中可用。

I've never done it myself, but looks like this article describes how to process incoming emails in rails. 我自己从未这样做过,但看起来本文介绍了如何处理rails中的传入电子邮件。 Good luck! 祝好运!

确定是可能的 - 看看http://cloudmailin.com/也是如此 - 他们会为您做所有接收方,然后将电子邮件“发布”到您的应用程序中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM