A Chris Smith project.
Mail Bucket is a simple tool that makes testing your mail implementation really easy.
How does it work?
Simply send an email to some @mailbucket.io address. Then perform a GET request to
mailbucket.io/<address> to retrieve the email. There is no prior setup of the mailbox required!
Show me an example!
- Send an email to
Isn't this insecure?
Well, if you use a simple address like
email@example.com, then yes, anybody can read the email you're sending. But don't do that, make up a random address like
and use that. Additionally, I suggest generating this address on-the-fly rather than hard coding it.
- If the email hasn't been received yet, the request will block for up to 60 seconds until the email is actually delivered. Feel free to make the request again if your mail sending implementation is that slow.
- The email can only be retrieved once. Additional requests will block as described above.
- Unretrieved emails are deleted after 1 hour.
- If a second email comes in, it will overwrite the already existing one.
- You can use a different domain than mailbucket.io, if you like. Just be sure that somewhere down the line you're sending stuff to this server.
- You can also checkout the source over on GitHub.