This is my code:
$server = '{imap.gmail.com:993/ssl/novalidate-cert}';
$imap_connection = imap_open($server, $login, $password);
$mailboxinfo = imap_mailboxmsginfo($imap_connection);
$messageCount = $mailboxinfo->Nmsgs;
Its throwing some errors .
Warning: imap_open() [function.imap-open]: Couldn't open stream {imap.gmail.com:993/ssl/novalidate-cert} in /home2/booksby/public_html/anonymousemail.php on line 13
Googling suggests that the problem is due to some firewall issues. And my hosting provider is asking me which port does my php script uses.
So can someone tell me which port needs to opened for the above to work ? is it 993 ? Any way I can find out for sure ?
Thanks
AS IBM states in their documentation:
for further reference see this link of php manual
as by @max
143 is the default /insecure/ port for IMAP. In the wild, most servers require SSL, which is on port 993.