Skip to content
This repository has been archived by the owner. It is now read-only.
self-hosted disposable email service (php) using catch-all and imap
PHP CSS
Branch: master
Clone or download

Latest commit

dependabot-preview and synox Bump php-imap/php-imap from 3.0.28 to 3.0.30 (#113)
Bumps [php-imap/php-imap](https://github.com/barbushin/php-imap) from 3.0.28 to 3.0.30.
- [Release notes](https://github.com/barbushin/php-imap/releases)
- [Commits](barbushin/php-imap@3.0.28...3.0.30)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Latest commit d93bbe0 Oct 13, 2019

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs move images to docs/ Mar 11, 2019
src
.gitignore ignore .php_cs.cache Mar 11, 2019
.php_cs.dist fixed config Mar 11, 2019
CHANGELOG.md Feature/removed router (#83) Mar 10, 2019
CONTRIBUTING.md update standards Mar 11, 2019
LICENSE.txt
README.md Remove sponsor Oct 13, 2019
app.json Updates for Heroku (#68) Sep 20, 2018
composer.json renamed backend-libs to vendor Mar 11, 2019
composer.lock Bump php-imap/php-imap from 3.0.28 to 3.0.30 (#113) Oct 13, 2019

README.md

disposable-mailbox

Join the chat at https://gitter.im/synox/disposable-mailbox

A self-hosted disposable mailbox service (aka trash mail) ☁️ ✉️

Demo: BhadooMail

PHP is not your thing? You should try the more efficient NodeJs version: https://github.com/synox/void-mail

Screenshot

Features

  • Anonymous usage, generate random email addresses.
  • New Mail notification. Download and delete your emails.
  • Display emails as text or html 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.

Build it yourself

The src directory contains all required files. If you want to update the php dependencies, you can update them yourself. You must have composer installed.

Install php dependecies:

composer update

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

Testing on MacOs

  • brew install php
  • brew tap kabel/php-ext
  • brew install kabel/php-ext/php-imap
  • php -S localhost:8000 -t src

Credit 👍

This could not be possible without...

You can’t perform that action at this time.