Self-hosted disposable temporary email service using php, catch-all email and imap.
Find a file
2021-01-04 15:36:23 +08:00
docs move images to docs/ 2019-03-11 19:58:28 +07:00
src Update frontend.template.php 2020-11-24 11:22:22 +08:00
.gitignore ignore .php_cs.cache 2019-03-11 20:31:39 +07:00
.php_cs.dist fixed config 2019-03-11 19:45:22 +07:00
app.json Updates for Heroku (#68) 2018-09-20 13:44:41 -05:00
CHANGELOG.md Feature/removed router (#83) 2019-03-11 01:09:24 +07:00
composer.json renamed backend-libs to vendor 2019-03-11 19:58:03 +07:00
composer.lock Bump php-imap/php-imap from 3.0.28 to 3.0.30 (#113) 2019-10-13 19:23:39 +02:00
CONTRIBUTING.md update standards 2019-03-11 19:43:20 +07:00
LICENSE.txt License: GPL-3.0 2017-04-15 21:10:22 +02:00
README.md Update README.md 2021-01-04 15:36:23 +08:00

A self-hosted disposable temporary mailbox service using php, catch-all email and imap.

Forked From: https://github.com/synox/disposable-mailbox

I made some minor modifications and use it as live production at the following website:

Live & Demo: Joyabo (www.joyabo.com)

Joyabo is a project of Wufuquan

Screenshot

Features

  • Anonymous usage.
  • Generate random email addresses or specify your own.
  • Download your emails.
  • Display emails as text with sanitization filter.
  • Display emails based on one catch-all imap mailbox.
  • Only requires PHP >=7.2 and imap extension.

Usage

Requirements

Before you start

Installation

Disposable-mailbox can be installed by copying the src directory to a webserver.

  1. Assure the imap extension is installed. The following command should not print any errors:

     <?php print imap_base64("SU1BUCBleHRlbnNpb24gc2VlbXMgdG8gYmUgaW5zdGFsbGVkLiA="); ?>
    
  2. Download a release 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.

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);

Credit 👍

This could not be possible without...

Others

Looking for similar services with different approaches? Try: Ikahana.