Hello Friends,
After trying out about 7 different scripts to get the pop3 connection working with zimbra. I think so the phpclasses script did the trick.
Here is a small tutorial to get it up and running
Step 1 : Download the script from
Step 2 : Customize the script to just read emails and flush. The author didnt have any function for the same. Hence I have written my own function.
Open - pop3.class.php5.php
public function readFile(&$strMail )
{
echo $strMail ;
}
Step 3 : Make changes to php_test1.php
$strProtocol= "tls";
$strHost = "hostname";
$intPort = 995;
$strUser = "username";
$strPass = "password";
$bAPopAutoDetect = TRUE;
$bHideUsernameAtLog = FALSE;
Step 4 : Try running the script on any linux server. Imap works well on a linux distro.
Step 5 : Incase of an issue. Make the following change in php_test1.php
find the saveToFile in pop3.classes.php5.php
Comment it.
// $this->saveToFile($strPathToFile, $this->getMsg($intMsgNum));
write the line below.
$this->readFile($this->getMsg($intMsgNum));
Things should work just fine.
Let me know if you encounter any issues.
Suzan Software Dev. team.