Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Wed, 17 Jun 2009 11:00:23 -0400
bill wrote:
Jerry Stuckle wrote:bill wrote:I fully agree with you and will be moving when my contract expires - maybe sooner !Jerry Stuckle wrote:bill wrote:Jerry Stuckle wrote:bill wrote:Jerry Stuckle wrote:bill wrote:If you are referring to the questions about ssl support, they were answered on 6/8Jerry Stuckle wrote:bill wrote:agreed, but do YOU have any ideas on how to debug this ?mlemos wrote:Hello,
I have no idea why IMAP extension functions are not working for you.
Anyway, I do not use that extension because I have a POP3 client class
that uses fsockopen function instead of the imap extension functions. It
works well for accessing Gmail messages using POP3.
http://www.phpclasses.org/pop3class
Take a look at the test_pop3.php example script. The comments tell you
how to setup the class to access specifcally Gmail.
The class also provides a nice feature that allows you to access
messages in POP3 servers as if they were files using regular PHP file
access functions and special URLs. For instance you can retrieve the
first message in your POP3 mailbox in Gmail with a single line of code:
$message =
file_get_contents('pop3://user:password@xxxxxxxxxxxxx:995/1?tls=1');
BTW, if you want to parse the messages to extract their features, which
often you do, you can also use this MIME parser class together with POP3
class.
http://www.phpclases.org/mimeparser
This article tells you more on this:
http://www.phpclasses.org/blog/package/2/post/1-Process-incoming-email-messages-using-PHP.html
No joy, at least your class returns the error message:
Error: 110 could not connect to the host "pop.gmail.com": Connection timed out
Not surprising.
Once he answers my questions...
----------------------------
>
> Compiled and running are two different things. What does phpinfo() show?
>
>
>
imap
IMAP c-Client Version 2004
SSL Support enabled
Kerberos Support enabled
-----------------------------------------------------
If you have other questions I would be glad to answer them.
bill
Sorry, I missed your message.
OK, it shows IMAP support for SSL is enabled. But what about SSL itself? What version of SSL do you have installed on your system?
You should see mod_ssl in your loaded modules; you should also see other entries for your SSL package (probably OpenSSL) in your environment. And if you're running this under a web server, you should see the information in your web server setup section.
openssl
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.8b 04 May 2006
Anything else you want to know ?
http://www.houndsofheaven.com/ContactManagement/phpinfo.php
OK, I set up a test gmail account and tried your code - it worked perfectly, showing (correctly) no mail in my box.
The next thing to try is to ensure you have access to gmail port 995 from the system you're running the script on. Can you telnet from the server to pop.gmail.com port 995? You won't be able to do the handshaking, but it's important to know if it can connect.
working on validating the connectivity - have to wait for the unbelievably slow tech support people at the host.
more to follow,
thanks
So you have telnet or ssh access to the system? If so, you should be able to telnet from there.
BTW - if their tech support is this slow, I'd recommend a new hosting company. IMHO, non-critical requests should be answered within 2-4 hours max.
They confirmed that they have blocked port 995 outgoing for no apparent reason but they are willing to unblock it (when they get around to it) for one IP address. Wowie.
Stay tuned and thanks.
bill
I guess I can understand that. Good hosts will block unnecessary ports for security reasons. The fact they are willing to unblock it for you is a definite plus.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- References:
- Re: Retrieving pop mail from gmail/ssl
- From: mlemos
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- From: Jerry Stuckle
- Re: Retrieving pop mail from gmail/ssl
- From: bill
- Re: Retrieving pop mail from gmail/ssl
- Prev by Date: Re: Calculate parcel size in PHP
- Next by Date: Re: Calculate parcel size in PHP
- Previous by thread: Re: Retrieving pop mail from gmail/ssl
- Next by thread: Re: Retrieving pop mail from gmail/ssl
- Index(es):
Relevant Pages
|