Giter Club home page Giter Club logo

mail_eater's Introduction

to setup postfix to send all your mail to the mail eater,

  1. Post Fix Stuff

    a) Add the following to the very end of /etc/postfix/main.cf

     default_transport = file_route
    

    b) Add the following to the very end of /etc/postfix/master.cf

     file_route unix  -       n       n       -       -       pipe user=$user argv=$path
    
     Where $user is the value of whoami on the command line and $path is the path to the mail_eater.php function.
     For me
     $user = dougmclean
     $path = /Users/dougmclean/Dropbox/www/mail_eater/mail_eater.php
    

    c) run the command $sudo postfix reload

  2. PHP needs to have mailparse enabled

    a) Install XCode through the AppStore b) Install macports if you don't have it already check to see if you have mac ports by running the port command - is it there? c) sudo port install autoconf d) Download php5.4.4 to /Applications/MAMP/bin/php/php5.4.4/include/php e) cd /Applications/MAMP/bin/php/php5.4.4/include/php/ e) ./configure --enable-mbstring f) sudo /Applications/MAMP/bin/php/php5.4.4/bin/pecl install mailparse g) add "extension=mailparse.so" after the line: extension=pdo_mysql.so (my line 540)

  3. Install this program

    a) Checkout this git repos to your web accessible directory. Mine is ~/www. b) run /Applications/MAMP/bin/php/php5.4.4/bin/php ~/www/mail_eater/test.php We are running php explicitly so that we know which version we're running, alternatively, if you've setup symlinks to the right version of php, you don't need to worry about this, check your php version by typing in php -v. c) Visit http://localhost/mail_eater/text.txt. Do you see the letters 'asdf'?

  4. If this is working properly, you should be able to visit two pages a) Http://localhost/mail_eater/text.txt to see the text version of the email that was sent b) Http://localhost/mail_eater/html.html to see the html version of the email that was sent.

    Now go and create software, and know what emails are being sent out without having to actually send the emails.

mail_eater's People

Watchers

James Cloos avatar  avatar

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.