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

Mail_IMAP Connection Wizard

  1. <?php
  2.  
  3.     /**
  4.      * A demonstration of how to use the connection wizard function.
  5.      *
  6.      * @author      Richard York <rich_y@php.net>
  7.      * @copyright   (c) Copyright 2004, Richard York, All Rights Reserved.
  8.      * @package     Mail_IMAP
  9.      * @subpackage  examples
  10.      **
  11.     */
  12.  
  13.     require_once 'IMAP.connection_wizard.php';
  14.  
  15.     // Attempt to find the correct URI for any protocol based on common
  16.     // port settings and configurations
  17.     if (FALSE != ($url Mail_IMAP_connection_wizard('mail.yourserver.net''mailuser''mailpass')))
  18.     {
  19.         echo $uri;
  20.     }
  21.     else
  22.     {
  23.         echo 'A suitable URI could not be detected.';
  24.     }
  25.  
  26.     // Attempt to find the correct URI on a specific protocol and port setting
  27.     //
  28.     // Mail_IMAP_connection_wizard('mail.yourserver.net', 'mailuser', 'mailpass', 'imap', 143);
  29.     //
  30.  
  31. ?>

Documentation generated on Mon, 11 Mar 2019 13:52:29 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.