Annotation of embedaddon/php/ext/standard/tests/mail/mail_variation1.phpt, revision 1.1

1.1     ! misho       1: --TEST--
        !             2: Test mail() function : variation invalid program for sendmail
        !             3: --INI--
        !             4: sendmail_path=rubbish 2>/dev/null
        !             5: --SKIPIF--
        !             6: <?php
        !             7: if(substr(PHP_OS, 0, 3) == "WIN")
        !             8:   die("skip Won't run on Windows");
        !             9: ?>
        !            10: --FILE--
        !            11: <?php
        !            12: /* Prototype  : int mail(string to, string subject, string message [, string additional_headers [, string additional_parameters]])
        !            13:  * Description: Send an email message 
        !            14:  * Source code: ext/standard/mail.c
        !            15:  * Alias to functions: 
        !            16:  */
        !            17: 
        !            18: echo "*** Testing mail() : variation ***\n";
        !            19: 
        !            20: // Initialise all required variables
        !            21: $to = 'user@company.com';
        !            22: $subject = 'Test Subject';
        !            23: $message = 'A Message';
        !            24: var_dump( mail($to, $subject, $message) );
        !            25: ?>
        !            26: ===DONE===
        !            27: --EXPECT--
        !            28: *** Testing mail() : variation ***
        !            29: bool(false)
        !            30: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>