PHP Classes

TRANSACTION state

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  TRANSACTION state  >  (Un) Subscribe thread alerts  
Subject:TRANSACTION state
Summary:connection is not in TRANSACTION state
Messages:2
Author:Andrew
Date:2011-02-09 14:17:03
Update:2011-02-09 20:36:36
 

  1. TRANSACTION state   Reply   Report abuse  
Picture of Andrew Andrew - 2011-02-09 14:17:04
Hi, Im trying to use the class but it writes "connection is not in TRANSACTION state". I get the error on this code

<?php error_reporting(E_ALL|E_NOTICE);

include 'pop3.php';

$pop3=new pop3_class();
$apop=0;
$pop3->authentication_mechanism="USER";
$pop3->debug=1;
$pop3->html_debug=1;
$pop3->join_continuation_header_lines=1;
$pop3->hostname = "pop.gmail.com";
$pop3->port = 995; // The port that gmail uses...
$pop3->tls = 1; // This is encryption
$user = "[email protected]";
$password = "passwd";

$pop3->Open();
$pop3->Login($user,$password,$apop);
$pop3->Statistics(&$mess,&$size_of);
var_dump($pop3->error);
?>

It does not work neither linux nor windows.

how do i fix this error? Thanks

  2. Re: TRANSACTION state   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2011-02-09 20:36:36 - In reply to message 1 from Andrew
It is very likely failing to connect or login, but since you do not verify if it failed it is giving that error.