New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to make disposable email website?
Hello,
is there any free script to make disposable email website so users can get one-time email to get messages? Sample: https://tempail.com/en/ https://tempmail.ninja/
Thanks!
Comments
This doesn't answer your question whether a "script" exists, but it shouldn't be too difficult to write a SMTP server that stores emails to a database, and then have a webapp (PHP script or otherwise) that queries said database and lists the emails received.
As far as coding goes, it’s pretty simple. Catch all. Randomly generate strings, ?id=string, display email To string from inbox.
Security considerations aside, the base logic is really simple.
Have a look at this repo: https://github.com/flashmob/go-guerrilla - they say that it powered GuerrillaMail.com which provided such disposable email addresses.
Side note: GuerillaMail shutdown thread https://www.lowendtalk.com/discussion/167870/guerillamail-shutdown-by-ovh
The end is nigh.
The only hard part is "sandboxing" the displayed e-mail and sanitizing its contents, clearing out JS, proxying images, whitelisting tags so it doesn't introduce XSS or something. You can steal the code from webmail clients like Roundcube. Rest is easy or already done. If you dare, you can write a simplistic SMTP server in couple of lines of Python. For tempmail you want to rotate a lot of domains because they'll get blacklisted quickly.
I believe there are some opensource. Because I build one long time ago.
@OVH_APAC sue GuerillaMail for fire.
i use this script
https://codecanyon.net/item/tmail-multi-domain-temporary-email-system/20177819
I guess your policy is to comment "the end is nigh" unless you have a thread where the end is actually nigh, like the OVH thread?
Agree with @donko, codecanyon.net is quite usable for "legitimate clones of xyz". Would usually start there
As to self-implementing, would not even overcomplicate it.. Use either AWS SES Inbound or Sendgrid inbound which both already offer anti-spam/virus filtering and can push to an http endpoint. Then with cloudflare workers + kv (with TTL so you don't need to worry about storage) you can setup something completely serverless and most probably quite cheap.
As others noted, the main deal will not be the implementation but dealing with misuse and rotating through domains.
Not sure why anyone would want to use or even host such a service
Look at https://github.com/inbucket/inbucket
Step-by-step tutorial on inbucket:
https://lowendbox.com/blog/create-your-own-self-hosting-mailinator-with-inbucket/
Inbucket makes it all very user-friendly like mailinator with a web interface, etc.
I wouldn't want to host it for others but for myself it is extremely handy. A lot of places now block mailinator and related domains. I self-host my own disposable email on a random domain.