disposable-mailbox-3/README.md

77 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2020-11-10 00:46:07 +00:00
A **self-hosted** disposable temporary mailbox service using php, catch-all email and imap.
2016-07-08 11:59:21 +00:00
2020-11-05 04:50:13 +00:00
**Forked From**: https://github.com/synox/disposable-mailbox
2017-04-15 19:10:22 +00:00
2020-11-06 07:28:51 +00:00
I made some minor modifications and use it as live production at the following website:
2017-04-15 19:10:22 +00:00
2020-11-06 07:29:50 +00:00
**Live & Demo**: [Joyabo (www.joyabo.com)](https://www.joyabo.com/)
2019-03-28 07:47:00 +00:00
2020-11-09 05:12:01 +00:00
Joyabo is a project of [Wufuquan](https://www.wufuquan.com/)
2021-01-04 01:31:16 +00:00
![Screenshot](https://excite.wufuquan.com/images/2020/joyabo-screenshot-example-02.png)
2016-07-02 21:05:44 +00:00
2016-07-02 21:09:59 +00:00
2018-01-31 11:52:39 +00:00
## Features
2016-07-02 21:09:59 +00:00
2020-11-05 05:22:38 +00:00
* Anonymous usage.
2020-11-06 07:27:56 +00:00
* Generate random email addresses or specify your own.
2020-11-05 04:55:49 +00:00
* Download your emails.
2020-11-05 05:40:54 +00:00
* Display emails as text with sanitization filter.
2018-01-31 11:52:39 +00:00
* Display emails based on one [catch-all imap mailbox](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox).
2020-11-05 05:40:54 +00:00
* Only requires PHP >=7.2 and [imap extension](http://php.net/manual/book.imap.php).
2016-08-08 07:10:25 +00:00
2020-11-05 04:55:49 +00:00
2018-01-31 11:52:39 +00:00
## Usage
2016-07-02 21:05:44 +00:00
2020-11-05 04:55:49 +00:00
2018-01-31 12:00:31 +00:00
### Requirements
2016-07-02 21:05:44 +00:00
2020-11-06 07:30:59 +00:00
* Webserver with php >=7.2
* Php [imap extension](http://php.net/manual/book.imap.php)
2018-01-31 11:52:39 +00:00
* IMAP account and a domain with [catch-all configuration](https://www.google.ch/search?q=how+to+setup+catch-all+imap+mailbox). (all emails go to one mailbox).
2020-11-05 04:55:49 +00:00
2018-01-31 12:00:31 +00:00
### Before you start :heavy_exclamation_mark:
2018-01-31 11:52:39 +00:00
* Subscribe to [![Join the chat at https://gitter.im/synox/disposable-mailbox](https://badges.gitter.im/synox/disposable-mailbox.svg)](https://gitter.im/synox/disposable-mailbox?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) to be notified about issues and bugfixes.
* This is **Beta** software, [there are still unsolved problems](https://github.com/synox/disposable-mailbox/issues). Contributions are welcome! :heart:
* License: **GPL-3.0**. You can modify this application and run it anywhere, charge money and show advertisement. Any forks or repacked distribution must follow the [GPL-3.0 license](https://opensource.org/licenses/GPL-3.0).
2020-11-06 07:27:08 +00:00
* A link to https://github.com/joyabo/disposable-mailbox in the footer is appreciated.
2018-01-31 11:52:39 +00:00
2018-01-31 12:00:31 +00:00
### Installation
2016-07-02 21:05:44 +00:00
2018-01-31 11:52:39 +00:00
Disposable-mailbox can be installed by copying the src directory to a webserver.
2020-11-09 05:14:07 +00:00
1. Assure the [imap extension](http://php.net/manual/book.imap.php) is installed. The following command should not print any errors:
2016-07-02 21:05:44 +00:00
<?php print imap_base64("SU1BUCBleHRlbnNpb24gc2VlbXMgdG8gYmUgaW5zdGFsbGVkLiA="); ?>
2020-11-09 05:14:07 +00:00
2. Download a [release](https://github.com/synox/disposable-mailbox/releases) or clone this repository
3. Copy the files in the `src` directory to your web server (not the whole repo!).
4. Rename `config.sample.php` to `config.php` and apply the imap settings. Move `config.php` to a safe location in a *parent directory* outside the `public_html`, so it is not reachable through the browser.
5. Open it in your browser, check your php error log for messages.
2016-07-02 21:05:44 +00:00
2018-12-26 02:12:43 +00:00
### Troubleshooting
* **IMAP Server has invalid certificate**: You might have to add `novalidate-cert` to the IMAP settings. See flags on http://php.net/manual/en/function.imap-open.php.
* **Error 500, Internal error**: Check your error log file. Add to `config.php`:
ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL);
2020-11-05 04:55:49 +00:00
2018-01-31 11:52:39 +00:00
## Credit :thumbsup:
2016-07-02 21:05:44 +00:00
This could not be possible without...
2020-11-05 05:41:50 +00:00
* https://github.com/synox/disposable-mailbox
* https://github.com/barbushin/php-imap
* https://github.com/gnugat-legacy/PronounceableWord
* http://htmlpurifier.org/,
* https://github.com/turbolinks/turbolinks
* http://tobiasahlin.com/spinkit/
2020-11-09 05:14:07 +00:00
## Others
2021-01-04 07:36:23 +00:00
Looking for similar services with different approaches? Try: [Ikahana](https://www.ikahana.com/).