Smiling Souls

Steeped in the delicious tea like leaves of anthroposophy for the evolving soul.

Mail_IMAPv2 Connection Wizard Example

<?php /** * A demonstration of how to use the connection wizard function. * * @author Richard York <rich_y@php.net> * @copyright (c) Copyright 2004, Richard York, All Rights Reserved. * @package Mail_IMAP * @subpackage examples ** */ require_once 'IMAP.connection_wizard.php'; // Attempt to find the correct URI for any protocol based on common // port settings and configurations if (FALSE != ($url = Mail_IMAP_connection_wizard('mail.example.net', 'mailuser', 'mailpass'))) { echo $uri; } else { echo 'A suitable URI could not be detected.'; } // Attempt to find the correct URI on a specific protocol and port setting // // Mail_IMAP_connection_wizard('mail.yourserver.net', 'mailuser', 'mailpass', 'imap', 143); // ?>

Comments

There are no comments posted at this time.

Leave a Comment

Simple HTML is allowed: <code>, <b>, <i>, <u>, <var>, <strong>, <em>, <blockquote>, <ul>, <ol>, <li>, <p> (no attributes). All spacing and line breaks in your comment will be preserved.

* All comments are moderated and are subject to approval.
Your comment will appear once it has been approved.
Posting multiple times will not expedite the approval process.

Comments are closed at this time.

© Copyright 2014 Hot Toddy, All Rights Reserved.