Login   Register  
PHP Classes
elePHPant
Icontem

geting messages from google apps

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      POP3 e-mail client  >  All threads  >  geting messages from google apps  >  (Un) Subscribe thread alerts  
Subject:geting messages from google apps
Summary:configure gmail
Messages:4
Author:cociweb
Date:2011-05-08 17:30:34
Update:2012-03-14 06:10:22
 

  1. geting messages from google apps   Reply   Report abuse  
Picture of cociweb
cociweb
2011-05-08 17:30:34
Hy everyone! I would like to get a little assistance to receive message content from google apps (gmail) How should I configure the files? I'm lost in the parameters

  2. Re: geting messages from google apps   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2011-05-12 09:36:41 - In reply to message 1 from cociweb
You may want to read this just published article:

http://www.phpclasses.org/blog/package/2/post/2-Retrieving-e ...

  3. Re: geting messages from google apps   Reply   Report abuse  
Picture of Jacob  Erez
Jacob Erez
2012-03-13 15:44:53 - In reply to message 2 from Manuel Lemos
great class, but can't access google apps
I followed your article:

$pop3=new pop3_class;
$pop3->hostname="pop.gmail.com"; /* POP 3 server host name */
$pop3->port=995; /* POP 3 server host port,
usually 110 but some servers use other ports
Gmail uses 995 */
$pop3->tls=1; /* Establish secure connections using TLS */
$user="xxxxxx"; /* Authentication user name */
$password="yyyyyyy"; /* Authentication password */
$pop3->realm=""; /* Authentication realm or domain */
$pop3->workstation=""; /* Workstation for NTLM authentication */
$apop=0; /* Use APOP authentication */
$pop3->authentication_mechanism="USER"; /* SASL authentication mechanism */
$pop3->debug=1; /* Output debug information */
$pop3->html_debug=1; /* Debug information is in HTML */
$pop3->join_continuation_header_lines=1; /* Concatenate headers split in multiple lines */


and getting:
Connecting to pop.gmail.com ...
Error: 110 could not connect to the host "pop.gmail.com": Connection timed out

pop3 is enabled on my google account
Thank you for your help
Coby

  4. Re: geting messages from google apps   Reply   Report abuse  
Picture of Manuel Lemos
Manuel Lemos
2012-03-14 06:10:22 - In reply to message 3 from Jacob Erez
This seems to indicate that the server has blocked the outgoing connections to port 995.

To verify that trying going in the server shell and see if this command can connect to the server:

telnet pop.gmail.com 995

If you cannot connect because it times out, you need to ask the server administrator to unblock the outgoing port 995.