Net_Vpopmaild
[ class tree: Net_Vpopmaild ] [ index: Net_Vpopmaild ] [ all elements ]

Source for file login.php

Documentation is available at login.php

  1. <?php
  2.  
  3. /*
  4.  * A simple login example
  5.  */
  6.  
  7.  
  8. require_once('Net/Vpopmaild.php');
  9. $vpop = new Net_Vpopmaild();
  10.  
  11. try {
  12.     // The host, port, and timeout below are the defaults and can be omitted
  13.     $vpop->connect('localhost''89''30');
  14. catch (Net_Vpopmaild_FatalException $e{
  15.     echo 'Error connecting to vpopmaild: ' $e->getMessage();
  16.     exit;
  17. }
  18.  
  19. // If we get here, authenticate
  20. if (!$vpop->authenticate('user@example.com''password')) {
  21.     echo "Error: login failed";
  22.     exit;
  23. }
  24.  
  25. // Display user info
  26. print_r($vpop->loginUser);
  27. exit;
  28.  
  29. ?>

Documentation generated on Mon, 11 Mar 2019 15:25:48 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.