PHP Classes

gmail- Error: 3 POP3 server greeting was not found

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  gmail- Error: 3 POP3 server greeting...  >  (Un) Subscribe thread alerts  
Subject:gmail- Error: 3 POP3 server greeting...
Summary:Error: 3 POP3 server greeting was not found
Messages:14
Author:albert
Date:2008-11-17 04:18:58
Update:2011-08-08 17:16:02
 
  1 - 10   11 - 14  

  1. gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of albert albert - 2008-11-17 04:18:58
how can i fix this?

  2. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2008-11-18 10:06:20 - In reply to message 1 from albert
It is hard to tell without seeing the actual server response.

Can you set the debug variable and show the output of the class?

  3. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Alexander Alexander - 2009-02-02 05:38:50 - In reply to message 1 from albert
I also had this error while connecting gmail. The solution for me was to set $pop3->tls=1

  4. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of shyam shyam - 2009-04-04 08:02:56 - In reply to message 3 from Alexander
setting $pop3->tls=1 did not solve the problem.
after setting tls=1 (won't work without ssh) Gmail sends the following greeting:
"* OK Gimap ready for requests from 67.228.xxx.xxx 4if137733fge.15"

other imap servers send "+OK <[email protected]>"

While validating the greeting the class checks for "+OK". Gmail never sends it and so the test fails. The internal function Tokenize returns "*" for gmail however the expected return in "+OK"

$greeting=$this->GetLine();
if(GetType($greeting)!="string"
|| $this->Tokenize($greeting," ")!="+OK") {
$this->CloseConnection();
return($this->SetError("3 POP3 server greeting was not found"));
}
I'm not sure what the correct fix should be for this. Is the gmail response valid ?

  5. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-04-04 08:24:44 - In reply to message 4 from shyam
This class is for connecting to POP3 servers, not IMAP. If you want to get Gmail mailbox messages using POP3, you need connect to port 995 of pop.gmail.com host .

  6. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of shyam shyam - 2009-04-04 08:52:47 - In reply to message 5 from Manuel Lemos
Hi Manuel, Thanks, that took care of the Greeting. However, now I am getting this error message "cannot get the name of a POP3 connection that was not established and the user has logged in"

here are my settings:

/*
require("sasl.php");
*/
$pop3->hostname=pop.gmail.com;
$pop3->port=995;
$pop3->tls=1;
$user=$username;
$password=$passwd;
$pop3->realm="";
$pop3->workstation="";
$apop=0;
$pop3->authentication_mechanism="USER";
$pop3->debug=0;
$pop3->html_debug=0;
$pop3->join_continuation_header_lines=1;

Thank, I greatly appreciate your help.
Shyam

  7. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of shyam shyam - 2009-04-05 10:00:53 - In reply to message 6 from shyam
Could not figure out what was going on so I ran the test_pop3.php with the same mailbox parameters. I got a pretty detailed error message telling me that pop was not enabled on my gmail account.

I'd advice anyone having problems using this class to run test_pop3.php. Their is some amazingly detailed bit of diags one can get from test_pop3.

  8. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Kian Vo Kian Vo - 2009-05-06 04:26:17 - In reply to message 5 from Manuel Lemos
Hi Manuel,

I am using Pop3 class to get mail from Gmail but I get these stucks like that

1. An error message when I run, it may from GetLine() function:
"Fatal error: Maximum execution time of 90 seconds exceeded in C:\AppServ\www\xxx\lib\pop3.php on line 84" -> sometimes, it is line 84, sometimes it is another line.

2. When program shows emails from Gmail, it shows correctly, but when I click to open detail of an email, the header, sender, subject are correct but only detail is from another one.

Could you help me please?

Thanks

  9. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-05-06 04:45:21 - In reply to message 8 from Kian Vo
The first problem is either caused because you are trying to retrieve very large messages or because you are accessing Gmail from a slow network.

The second problem I am not sure what you mean. Can you please explain with an example?

  10. Re: gmail- Error: 3 POP3 server greeting...   Reply   Report abuse  
Picture of Sage Allen Sage Allen - 2010-04-13 10:05:16 - In reply to message 9 from Manuel Lemos
Don't know if anyone is still paying attention here, but just in case someone else goes looking for this error, I'll post up my solution.

GMail tells you to provide your username as "[email protected]", which I tried and got the error in question. However, when I formatted this as "username" without "@gmail.com", I was able to successfully login.

Hope this helps someone out there.

 
  1 - 10   11 - 14