Re: Net_IMAP and SSL

From: Date: Mon, 27 Dec 2010 18:18:46 +0000
Subject: Re: Net_IMAP and SSL
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-30881@lists.php.net to get a copy of this message
On 12/27/2010 06:27 PM, Mohsen Khahani wrote: > Hello, > I'm using "Net_IMAP" package and it works great. But I can not connect to > Gmail. Every thing seems be ok. I think Net_IMAP does not support SSL > connection. So if does not, is there any solution. I can not use PHP IMAP > because of lack of extension on shared server. Hi, haven't yet tried that myself, but a quick search on the package shows that inside the class Net_IMAPProtocol http://pear.php.net/package/Net_IMAP/docs/latest/__filesource/fsource_Net_IMAP__Net_IMAP-1.1.0IMAPProtocol.php.html#a430 there is $_streamContextOptions used when doing $this->_socket->connect(...). And using that stream_context you should also be able to set SSL/TLS-options as needed. http://de3.php.net/stream_context_create Please give it a try ... Kind regards, Stefan Neufeind

« previous php.pear.general (#30881) next »