Best way to send anonymous email like craigslist

可紊 提交于 2019-12-21 03:55:25

问题


Craigslist has a nice feature where when you respond to a poster you respond to an email such as job-fepsd-1120347193@craigslist.org. 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


回答1:


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.




回答2:


The most probable solution is that they do email piping.

They insert the ad with an identifier like "job-fepsd-1120347193" alongside the real email.

Then they receive the email by piping it to a php script (check google for PHP and Piping for good resources on the subject).

The script then search for the unique identifier and associate it to a real email. It forward the email received to the real guy after.

There is also another possible solution (but less possible), they might be using POP3. The would then just cron a check each X minutes on a catch all adress and then forward the message to the right guy.




回答3:


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/



来源:https://stackoverflow.com/questions/745124/best-way-to-send-anonymous-email-like-craigslist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!