Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Spamgourmet offers the source code for their service for people who want to run their own disposable email service. Are there any others available for download?

I'd prefer them to be written in PHP but I'm mostly just curious to see other options out there.

share|improve this question

2 Answers 2

It wouldnt be too tough to write in php. I would search stack overflow for a slolution but essential this is what i would do.

I would create an actual email address with a catch all alias associated to it. Then in MySQL i would create the email addresses that i want to receive mail to.

So I would have:
anon-23432434@mydomain.com
anon-44655654@mydomain.com
(you can name them whatever you want)

When someone sends email to any of these addresses, it would go to the catchall@mydomain.com email address and sit in the inbox.

Next create a php script that can use pop to read emails and delete them from the server. I think PHP has built in functions for this. The script would check the send to address and look it up in your database. Then I could forward it to the right recipeient (this is what craigslist does), or it could be more elaborate and put the message in your database for an internal messaging system (sort of like LinkedIn or Facebook).

Not that tough to build at all.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.