Jump to content

smarcus3

Members
  • Posts

    22
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

smarcus3's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well I guess its good since it forced me to change my password.
  2. Thanks to whatever admin removed my credentials.
  3. Ill do that now. Thanks. I've been careful to delete my pass every time but of course on the last post i mess up.
  4. Also if someone wants to see the output please use this link. http://smarcus3.x10.mx/ Here is the complete index.php code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="description" content="" /> <meta name="keywords" content="" /> <meta name="author" content="" /> <link rel="stylesheet" type="text/css" href="style.css" media="screen" /> <title></title> </head> <body> <?php $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}INBOX", "[email protected]","xxx", OP_READONLY) or die ("can't connect: " . imap_last_error()); $status = imap_status($mbox, "{imap.gmail.com}INBOX", SA_ALL); if ($status) { echo "Messages: " . $status->messages . "<br />\n"; echo "Recent: " . $status->recent . "<br />\n"; echo "Unseen: " . $status->unseen . "<br />\n"; echo "UIDnext: " . $status->uidnext . "<br />\n"; echo "UIDvalidity:" . $status->uidvalidity . "<br />\n"; } else { echo "imap_status failed: " . imap_last_error() . "\n"; } ?> </body> </html> [/Code] EDIT (KP) Removed credz
  5. thanks drco2 just figured it out. Thanks all for all the help. Using a server such as x10 which allows 993 connections is definetly key. I hope this thread can help someone else now. This server is also free.
  6. Here is the working code $mbox = imap_open ("{imap.gmail.com:993/imap/ssl}INBOX", "********@gmail.com","********", OP_READONLY) or die ("can't connect: " . imap_last_error()); $status = imap_status($mbox, "{imap.gmail.com}INBOX", SA_ALL); if ($status) { echo "Messages: " . $status->messages . "<br />\n"; echo "Recent: " . $status->recent . "<br />\n"; echo "Unseen: " . $status->unseen . "<br />\n"; echo "UIDnext: " . $status->uidnext . "<br />\n"; echo "UIDvalidity:" . $status->uidvalidity . "<br />\n"; } else { echo "imap_status failed: " . imap_last_error() . "\n"; } [/Code]
  7. My IMAP No longer gives me an error!!!!!!!!! but how do I count unread messages. I switched over to 10x hosting.
  8. Yes. I could try using pop port 995?
  9. Im using 000WebHost now.
  10. When I use this code .... $email = 'st********[email protected]'; $pass = '********'; $inbox = imap_open('{imap.gmail.com:993/imap/ssl}INBOX', $email, $pass, NULL, 1) or die('Cannot connect to Gmail'); [/Code] I get this error now [Code]Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl}INBOX in /home/a6807236/public_html/default.php on line 56 Cannot connect to Gmail[/Code]
  11. bool(true)
  12. That code doesn't work either It still times out.
  13. I am now using 000webhosting which after talking to their IT they stated they support IMAP_OPEN but I still get the time out error. I know this has already been talked about on other threads, but do you know of a free host which does allow this. I have tried many now.
  14. echo file_get_contents("http://google.com"); returned 301 Moved The document has moved here. [/Code] but my connect always times out still. I even tried using a different gmail account with only a few emails in it.
  15. Also the page is here if that helps you. http://smarcus3.x11s.org/
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.