You are here: Re: [PHP] imap_open « PHP « IT news, forums, messages
Re: [PHP] imap_open

Posted by "Joachim Person" on 09/20/05 21:57

Further, when changing the imap_open line in the script to

$mbox = imap_open("{imap.liu.se:993/imap/ssl}", "joape382", "fiol");

(I added the /imap/ssl part) I immediately got the following response:


Warning: imap_open(): Couldn't open stream {imap.liu.se:993/imap/ssl} in
c:\inetpub\wwwroot\TestGetMail.php on line 2

Mailboxes

Warning: imap_listmailbox(): supplied argument is not a valid imap resource
in c:\inetpub\wwwroot\TestGetMail.php on line 5
Call failed

Headers in INBOX

Warning: imap_headers(): supplied argument is not a valid imap resource in
c:\inetpub\wwwroot\TestGetMail.php on line 16
Call failed

Warning: imap_close(): supplied argument is not a valid imap resource in
c:\inetpub\wwwroot\TestGetMail.php on line 26

Notice: (null)(): Can't open mailbox {imap.liu.se:993/imap/ssl}: invalid
remote specification (errflg=2) in Unknown on line 0



When not having the /imap/ssl part I only get


Warning: imap_open(): Couldn't open stream {imap.liu.se:993} in
c:\inetpub\wwwroot\TestGetMail.php on line 2

Fatal error: Maximum execution time of 30 seconds exceeded in
c:\inetpub\wwwroot\TestGetMail.php on line 2

Notice: (null)(): [CLOSED] IMAP connection broken (server response)
(errflg=2) in Unknown on line 0


as a response after 30 seconds. Does this mean I have to include a
certifcate of some kind in some way? If I need, how to do it?

Regards,
Joachim



"viraj" <kalinga@gmail.com> skrev i meddelandet
news:74721f46050918003166552ecb@mail.gmail.com...
did you tried telneting to host's 143 port? if you are getting a
response from the IMAP server you better go through the php-imap
requirements, it's here..

http://www.php.net/imap

> ? I have got the address and the port to the imap server right, but I
> think
> that the imap server requires some sort of secure login. Could this be the

it depends,

http://www.php.net/manual/en/function.imap-open.php

~viraj.

> problem? If yes, how can it be solved? If no, what other causes could it
> be?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация