Giter VIP home page Giter VIP logo

disposable-email's Introduction

WARNING: Discontinued

this repository is not maintained any more! please use https://github.com/synox/disposable-mailbox instead, which is a complete rewrite with angularjs. it is also simpler by using IMAP, without database and it that does not need "pipe to command".

self-hosted disposable email system

This disposable email solution can be hosted on your own standard PHP-webhoster. All you need is PHP with mailparse extension and "Pipe to a Program" functionality. The system is as simple as possible, with minimal codebase and complexity.

Usage

When accessing the web-app a random email address is generated for you. The page will reload until emails have arrived. You can delete emails and see the original sourcecode.

Example Screenshot

screenshot

Licence

Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)

https://creativecommons.org/licenses/by-nc/4.0/

Requirements

Installation

  • assure the mailparse extension is installed. The following command should not print any error:

      <?php mailparse_msg_create(); ?>
    
  • Clone/download this repository

  • run composer install

Configuration

  • forward/pipe email to the php script app/pipe_input.php (e.g. cpanel docs)
  • (optionally) configure a different database like mysql in app/config.php
  • (optionally) configure the link redirection provider (to keep the existence of your installation secret) in app/config.php

TODO

  1. security audit against xss/sqli

development environment

There is a Vagrantfile to be used with vagrant.

OSX dependencies

  • install php: https://github.com/Homebrew/homebrew-php
  • add php to path: fish config: set PATH /usr/local/opt/php55/bin $PATH
  • pecl install mailparse
  • (see "php --ini" for file: ) echo "extension=mailparse.so" >> /usr/local/etc/php/5.5/php.ini

Troubleshooting

Mails do not appear in the mailbox

First make sure you check the php error log. also enable php error reporting with error_reporting(E_ALL); in config.php.

Then also try to run the command manually from the command line. For this login into your server by ssh. Create a sample mail (like https://gist.github.com/synox/fa11060975bec7250a46) and save it somewhere on the server. Then run the script the same way as the mailserver would pipe the mail to it.

    cat samplemail.txt | php /path/to/app/pipe_input.php

That should either process the mail or return an error.

I can't get it to work. It's too complicated.

I have another solution which is easier to configure and install: https://github.com/synox/disposable-mailbox

See also

disposable-email's People

Contributors

synox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

disposable-email's Issues

Can't receive emails

Hello,
i have installed your script but when i try send mails to the temporary mail i receive nothing :/ can you help me ?

King Regards,

Error 500

I tried to install the script but I got Error 500
Seams like file vendor/autoload.php does not exists

404 not found every load

I have the software installed as you list. Everything seems to go OK, and then I load up the site and see it auto generates a username and puts it at the end of the URL IE http://1.1.1.1/luepru57/ and then I get a 404. Seems the code may not be creating the DIR's? Any ideas?

Does it work on sub domains ?

Does it work on sub domains ?
I installed but I don't get emails.
I ollso neaded to delete composer.lock file because I couldn't istall the exorus/php-mime-mail-parser

Email Not receiving

I installed disposable-email on cpanel but email is not receiving :(
i also forward/pipe email to the php script app/pipe_input.php but email is not receiving
What should i do. Please Guide me

How to install it via cPanel?

I'm having cPanel hositng and since this is php based mail client, how can I install it on server? i.e. what needs to go into public_html and what needs to be outside of public_html folder (if any).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.