PDA

View Full Version : Imap Open



Mike
01-30-2007, 03:10 PM
Hi all,

I'm trying to set up a script to receive mail on my account. At the moment my imap open function looks like this:


$MAILSERVER="{localhost/imap}";
$link=imap_open($MAILSERVER, "username","pass");

Although this does return emails, it's emails from the wrong account. When I put different username and password details that apply for another account, it just doesn't return anything. So, my question is how do I get to view these other email accounts? Is it related to the mailserver?

Thanks,
Mike

Mike
01-31-2007, 08:04 AM
Ok, problem sorted. I just tried a random port in the mailserver part and it worked.

Shawn
01-31-2007, 08:41 AM
Good :)