/Mail.BhadooMail.com

Heroku Version of synox/disposable-mailbox

Primary LanguagePHP

disposable-mailbox

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

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

This Repo is made to Directly Deploy to Heroku.com

Demo: Bhadoo Mail Mirror Site at Heroku

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 ❗

How to Deploy to Heroku. (Pretty Simple)

Deploy

  • Make an free account at Heroku
  • Fork this Repo.
  • Edit File i.e. here at secure/config.php
  • Add your imap url.
  • Add username and password of your mailbox.
  • Update your domain names and save the file.
  • Now click on Deploy to Heroku Button Above.
  • Your App is live.

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 outside the public_html.

  5. edit index.php and json-api.php: set the new path to config.php.

  6. 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

Credit 👍

This could not be possible without...

BrowserStack

Supported by BrowserStack, which allows us to test projects online with any browser as a service. :-)