
Ali Feizollah - 2008-06-26 15:45:01
Hi everybody:
I am new to PHP. I want to read email and pars the header and get sender's address of new emails in Gmail.
I tried pop3 class of PHP. but I got an error says: " POP3 connect() - Error: POP3 _getnextstring() - Socket_Timeout_reached"
and this is my code:
<?php
require ('pop3.class.inc');
$p = new POP3;
// Connect to mail server
$do = $p->connect ('pop.gmail.com','995');
if ($do == false) {
die($p->error);
}
echo 'Connected to mail server';
$p->close();
?>
I just tested the connection.
Is this way and using pop3 class right to get an appropriate answer?
please help me. this is my graduation project.
thanks
Ali