imap php

Status
Not open for further replies.

shekabi

New Member
Messages
7
Reaction score
0
Points
0
I am getting an error while using the imap_open() function.

Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/imap/ssl/}INBOX
Can't connect: Can't open mailbox {imap.gmail.com:993/imap/ssl/}INBOX: invalid remote specification

the following is the code.

$host='{imap.gmail.com:993/imap/ssl/}INBOX';
$mail=imap_open($host,$email_id,$email_password) or die("Can't connect: " . imap_last_error());

It was working for a while and then stopped working. Also does x10 support all the imap php functions e.g imap_search etc.

Thanks
Edit:
I am also getting the following log error

[Tue Oct 13 20:10:21 2009] [error] [client 65.212.190.142] File does not exist: /home/shekabi/public_html/favicon.ico, referer:

I have not mentioned a file called favicon.ico in my php file
Edit:
cpanel username : shekabi
domain: abishek.elementfx.com
 
Last edited:

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
im not sure about your first one but the second one is due to the browser looking for an icon for the site, and has nothing to do with your programing.

IE how x10 has its little logo next to the url in the address bar



after doing some poking around, i found this:
$mbox = @imap_open("{pop.gmail.com:995/pop3/ssl/novalidate-
cert}INBOX",'email at gmail.com','password');
if (!$mbox) { $mbox = @imap_open("{pop.gmail.com:995/pop3/
ssl/novalidate-cert}INBOX",'email at gmail.com','password'); }

so you could try addingl/novalidate-cert to it
 
Last edited:

shekabi

New Member
Messages
7
Reaction score
0
Points
0
i tried adding /novalidate and it did not work. the code you gave me works, but that is POP3 on port 995. I want to connect with IMAP on port 993 and that still doesnt work. Is x10hosting blocking port 993?

Thanks
 

shekabi

New Member
Messages
7
Reaction score
0
Points
0
Thanks for the responses. IMAP is enabled in my gmail settings. If port 993 is blocked for the free accounts, would you happen to know what accounts they enable that port for.

Thanks
 
Status
Not open for further replies.
Top