Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-14-2008, 08:41 PM
Junior Member
 
Join Date: May 2008
Posts: 1
Send a message via MSN to ciprian_dimofte Send a message via Yahoo to ciprian_dimofte Send a message via Skype™ to ciprian_dimofte
Question IMAP issue connecting with TLS

Hey everybody,

I have this issue with some piece of code when using the Zend Mail class.

Here's the code I'm using:

PHP Code:
require_once ("Zend/Mail/Storage/Imap.php");

$mail = new Zend_Mail_Storage_Imap(array('host'     => 'imap.gmail.com',
                                         
'user'     => 'myemail@gmail.com',
                                         
'password' => 'thecorrectpassword',
                                         
'port'      => 993,
                                         
'ssl'      => 'TLS'));



foreach (
$mail as $message) {
    echo 
$message->Subject."<br />";

Now... normally it should list all subjects it found in my messages in the INBOX folder, but it just won't work when I'm doing gmail.

It works fine on any other normal imap server running on the default 143 port.

I also checked my firewalls and they're both off and I added a specific rules for ports 993 and 995 to allow inbound and outbound connections.

I'm running XAMPP on Windows XP.

I'd appreciate some help if someone can.
__________________
Regards,
Ciprian Dimofte
http://www.a-mazed.com
Free SMS and Web Instant Messenger for ALL platforms and ALL browsers.
[SIGPIC]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:33 AM.