Skip to content
Snippets Groups Projects
Select Git revision
  • 8d96801f4b8b4f8f117f7ebe9b8ea23983444bca
  • main default protected
2 results

php-sendmail.php

Blame
  • php-sendmail.php 852 B
    #!/usr/local/bin/php -q
    <?php
    /**
     * =======================================================================
     * 
     * PHP EMAIL CATCHER
     * Read emails sent by mail() and browse them
     * 
     * 👤 Author: Axel Hahn, Institute for Medical Education, University of Bern
     * 📄 Source: <https://git-repo.iml.unibe.ch/iml-open-source/php-emailcatcher>
     * 📜 License: GNU GPL 3.0
     * 
     * ----------------------------------------------------------------------
     * 2024-10-08  v0.1  initial version
     * =======================================================================
     */
    
    require_once('classes/emailcatcher.class.php');
    
    // you will likely need to handle additional arguments such as "-f"
    // $args = $_SERVER['argv'];
    
    $oMail=new emailcatcher();
    $oMail->catchEmail();
    
    // return 0 to indicate acceptance of the message (not necessarily delivery)
    return 0;