note 97873 rejected from function.imap-open by danbrown
| From: | danbrown@php.net | Date: | Sat, 22 Jan 2011 02:28:28 +0000 |
| Subject: | note 97873 rejected from function.imap-open by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-175989@lists.php.net to get a copy of this message | ||
Note Submitter: mydisk6g at gmail dot com
----
Guys, I can't access this pop3 GMail account.
I had read all your comments, I run this on Linux UBUNTU 8.04, GOS.
I had runt it 2years ago on windows xp but the machine crash, if U can help Thks..
<html><head><title>MailTest</title></head><body><h1>Mailtest</h1>
<?php
echo "Loading..."."<br />\n";
$mailuser="mydisk6g@gmail.com";
echo "User=$mailuser"."<br />\n";;
$mailpass="mailtest";
echo "Pass=$mailpass"."<br />\n";
/* Settings: Status: POP is enabled for all mail that has arrived... */
/* Google say: Incoming Mail (POP3) Server - requires SSL: pop.gmail.com, Use SSL: Yes Port: 995 */
$mailhost="{pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX";
echo "Host=$mailhost"."<br />\n";
$mailbox=imap_open($mailhost,$mailuser,$mailpass) or die("<br />\nFAILLED!
".imap_last_error());
imap_close($mailbox);
echo "completed.". "<br />\n";;
?>
</body></html>
==>
Mailtest
Loading...
User=mydisk6g@gmail.com
Pass=mailtest
Host={pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX
Warning: imap_open() [function.imap-open]:
Couldn't open stream {pop.gmail.com:995/pop3/ssl/novalidate-cert}INBOX
in /home/emailosc/public_html/mailtest.php on line 13
FAILLED! Can't connect to gmail-pop.l.google.com,995:
Connection timed out