PHP Classes

Use "pop3.class.inc"

Recommend this page to a friend!

      pop3.class.inc  >  All threads  >  Use "pop3.class.inc"  >  (Un) Subscribe thread alerts  
Subject:Use "pop3.class.inc"
Summary:Problem with connection
Messages:5
Author:szucs laszlol
Date:2008-02-05 20:47:29
Update:2008-02-24 17:57:26
 

 


  1. Use "pop3.class.inc"   Reply   Report abuse  
Picture of szucs laszlol szucs laszlol - 2008-02-05 20:47:29
Hi!

I tried to use the next code for read my emails with PHP:

<?php
require ('pop3.class.inc');
$pop3 = new POP3;
// Connect to mail server
$do = $pop3->connect ('pop3.vipmail.hu');
if ($do == false) {
die($pop3->error);
}
echo 'Connected to mail server';
$pop3->close();
?>

But the answer what I get:
POP3 connect() - Error: Can't connect to Server. Error: --

Can you help me what sould be the problem??

Thanks,
Szuecs -
szucs_laszlo@vipmail.hu

  2. Re: Use "pop3.class.inc"   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2008-02-09 10:18:51 - In reply to message 1 from szucs laszlol
Hi,

check is it allow to call the "fsockopen" function at the webserver wehere the script run.

regards
j0inty

  3. Re: Use "pop3.class.inc"   Reply   Report abuse  
Picture of szucs laszlol szucs laszlol - 2008-02-13 20:47:52 - In reply to message 2 from Steffen Stollfuß
Thank your answer.
I tried to understand the function you mention, but I could not.

Can you show an example?

My email is from www.vipmail.hu -so this could be the server for my mails.

  4. Re: Use "pop3.class.inc"   Reply   Report abuse  
Picture of szucs laszlol szucs laszlol - 2008-02-13 21:12:22 - In reply to message 2 from Steffen Stollfuß
Thanks your answer.
I tried to undestand the function you mentioned, but I could not.

Can you show an example to connect to my webserver?

My emails are www.vipmail.hu

Regards!

  5. Re: Use "pop3.class.inc"   Reply   Report abuse  
Picture of Steffen Stollfuß Steffen Stollfuß - 2008-02-24 17:57:26 - In reply to message 3 from szucs laszlol
Hi,

What I mean was not to understand the fsckopen function. I meant that you should check is it allow to use the fsockopen function on the webserver where the script runs.

Normally you will find the info in the output of phpinfo().


 
For more information send a message to info at phpclasses dot org.