如何设置一次性电子邮件别名(craigslist 风格)?
在 .NET 中编写我自己的“craigslist”,试图弄清楚如何创建一次性电子邮件别名(craigslist 类型)?
这就是我所说的“craigslist”的意思 风格”。
我的网站是:somecoolurl.com
用户创建了帐户,但没有创建帐户 希望在网站上发帖时提供他/她的电子邮件地址作为联系方式。
我想给用户一封临时电子邮件 [电子邮件受保护] 和 将其别名为他们的真实电子邮件。什么时候 用户想要收到一封新电子邮件, TEMP 被屏蔽并收到一封新电子邮件 创建。
Writing my own "craigslist" in .NET, trying to figure out how to create disposable email aliases (craigslist type)?
Here's what I mean by "craigslist
style".My website is: somecoolurl.com
User creates an account, but doesn't
want to give his/her email out as contact when posting on the site.I want to give the user a TEMP email
[email protected] and
alias that to their real email. When
the user wants to get a new email, the
TEMP gets canned and a new email gets
created.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您是在谈论电子邮件地址管道吗?看看这个问题像 craigslist 这样发送匿名电子邮件的最佳方式
以下是如何通过管道在 IIS 上传入邮件
Are you talking about email address piping? Check out this SO question Best way to send anonymous email like craigslist
Here is how to pipe incomming mail on IIS
嗯,不太确定您所指的“craigslist”是什么,但我确实知道在我当前构建的应用程序中,我从 http://smartertools.com 并使用他们的 .NET API 作为我软件的一部分。
当用户注册并付款时,我生成一个随机字符串(如果您愿意,您可以使其更有意义),然后将其附加到域名([电子邮件受保护])
从那里,我通过 SmarterMail API 创建电子邮件地址,并根据用户现有密码分配密码。
然后我有一个观察者检查付费订阅是否失效...如果失效,我会禁用该帐户 X 天。如果用户在 X 天后没有续订,观察者就会删除该帐户(这会降低我的用户总数,因为我还没有支付无限许可证的费用)。
效果很好。
Hmm, not exactly sure what you're referring to with "craigslist" but I do know that in an app that I currently built, I purchased the SmarterMail app from http://smartertools.com and used their .NET API as part of my software.
When a user signs up and pays, I generate a random string (you could make it more meaningful if you want) and then append it to the domain name ([email protected])
From there I create the email address via the SmarterMail API and assign the password based on the users existing password.
Then I have a watcher the checks to see if the paid subscription lapses... if it does, I disable the account for X days. If the user doesn't renew after X days, the watcher deletes the account (this keeps my total users down since I didn't pay for the unlimited license yet).
Works very well.
设置一个包罗万象的帐户。然后用C#用IMAP或者POP登录并按照你的规则转发。
Set up a catch-all account. Then use C# to log in with IMAP or POP and forward according to your rules.