Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 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
?>