<?php
// Function to control and display errors
function process_errors()
{
foreach (imap_errors() as $errors)
{
print "\t\t\t" . $errors . " <br/>\n";
}
print "\t\t</p>\n";
print "\t</card>\n";
print "</wml>";
}
// open stream, on error goto process_errors function
$mbox = @imap_open ("{" . $domain . "/pop3:110}INBOX", "$username", "$password") or die(process_errors());
?>
This connects and then on any errors goes to the error function, I only included this as I said in the above post, to stop the auto resposne printing to the device as WAP device's don't like HTML <tag's>.
Hope this helps,
email me if not.
pgudge