发送匿名电子邮件(如 craigslist)的最佳方式
Craigslist 有一个很好的功能,当您回复海报时,您会回复电子邮件,例如 [电子邮件受保护]。 然后,该电子邮件将被定向到真实的电子邮件。
我正在寻找一些关于如何使用 PHP 执行此操作的指南。
谢谢,
李维
Craigslist has a nice feature where when you respond to a poster you respond to an email such as [email protected]. The email is then in turn directed to the real email.
I am looking for a couple pointers on how to do this with PHP.
Thanks,
Levi
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这通常是通过将电子邮件地址(通常是一个包罗万象的地址)传递给 PHP 来完成的。 这是一个有关执行此操作的教程,它应该可以帮助您朝着正确的方向开始。
This is usually done by piping an e-mail address (often, a catch-all address) to PHP. Here's a tutorial on doing it that should get you started in the right direction.
最可能的解决方案是执行他们所谓的电子邮件管道。
他们插入带有如下标识符的广告:
与真实的电子邮件一起。
然后,他们通过将电子邮件传送到 PHP 脚本来接收电子邮件。
您可以在 Google 上查找 PHP 和 Piping,在那里您可以找到有关该主题的优质资源。
然后,该脚本会搜索该唯一标识符并将其与真实的电子邮件关联起来。
然后它将收到的电子邮件转发给真实的人。
还有另一种可能的解决方案(但可能性较小),他们可能正在使用 POP3。
然后他们只需每隔X分钟检查一次包罗万象的地址,然后将消息转发给正确的人。
The most probable solution is by doing what they called as Email Piping.
They insert the ad with an identifier like this:
alongside with the real email.
Then they receive the email by piping it to a PHP script.
You can check Google for PHP and Piping where you will find good resources on the subject.
The script then searches for this Unique Identifier and associates it with a real email.
Then it forwards the email received to the real person.
There is also another possible solution (but less possible), they might be using POP3.
Then they would just make a check every X minutes on a catch-all address and then forward the message to the right person.
Elastic Email 有一个简单的 API,用于创建双向匿名电子邮件路由,就像 craigslist 或 airbnb 一样。 它使用入站电子邮件 API 调用服务器上的 Web 挂钩来解析正确的电子邮件地址,然后相应地中继电子邮件。 只需要几行代码。 他们在这里有详细的教程:
https://elasticemail.com/blog/marketing_tips/how-to-build-an-anonymized-email-relaying-feature-using-elastic-email/
Elastic Email has a simple API for creating two-way anonymous email routing just like craigslist or airbnb. It uses an inbound email api to call a web-hook on your server to resolve the correct email addresses and then relays the email accordingly. It only takes a few lines of code. They have a detailed tutorial here:
https://elasticemail.com/blog/marketing_tips/how-to-build-an-anonymized-email-relaying-feature-using-elastic-email/