473,800 Members | 3,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

error with imap_open

hello,
i'm getting a very strange behaviour with imap_open.
My code does:
$stream = imap_open("{{$_ SESSION["host"]}:110/pop3}INBOX",
$_SESSION["user"], $_SESSION["pass"]);
then checks if that stream is valid...
well, this code seems to work on some pop3 servers...
on some servers, if($stream) evaluates to false and imap_error prints
"Can not authenticate to POP3 server: POP3 connection broken in response"
However i'm pretty sure authentication works, because using wrong
user/pass results in the proper wrong user/pass error.
Does anybody know what's happening?
Jun 24 '06 #1
0 1589

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
8340
by: James Turnbull | last post by:
I am having troubles with some imap_open() I am using the following code: <?php $mbox = imap_open ("{mailserver:993/imap/ssl/no-validatecert}INBOX", "user", "password"); echo "<p><h1>Mailboxes</h1>\n";
0
915
by: Jaysheel Mehd | last post by:
I will be running the script with imap_open() on the IMAP server as root. Can I run imap_open() without entering the password for a user. Is there any other way as an administrator, to open user's mailbox and perform imap_uid and imap_msg without entering user's password? Thanks Jaysheel
2
2097
by: Rodney Pont | last post by:
I'm trying to use imap_open to get news from a server that requires a user name and password. I'm using $nntp = imap_open("{".$newsserver."/nntp:".$port."}".$newsgroup, $newsuser, $newspass, OP_ANONYMOUS); and it's failing to connect.
0
2313
by: Dennis Biletsky | last post by:
Hi, I have a problem to connect mailbox using IMAP_OPEN. There is no problem to connect using standard port such as imap_open ("{10.0.0.0:143}INBOX", "user", "pass"), but I have a problem connect using secure connection such as imap_open ("{10.0.0.0:993/imap/tls}INBOX", "user", "pass") or imap_open ("{10.0.0.0:993/imap/ssl}INBOX", "user", "pass"). When I use MSOutlook, it connects without problem using ssl. Any ideas?
0
1740
by: Hartt | last post by:
hi,all I have written a php scripts to test my mail server which built with Cyrus-imapd 2.2.3 OpenLDAP Postfix. <?php if(!imap_open("{MailServerDomain:143/imap/notls}INBOX","username","password")) echo "error is ".imap_last_error()."\n"; else echo "successful";
2
3480
by: amiliv | last post by:
I'm attempting to connect to Cyrus IMAP server using imap_open() function. The connection is sucessfull, however there is a delay and warning message about "rsh failure". I added /norsh flag to connection string, but it seems to be ignored. The call to imap_open() currently looks something like this: imap_open("{cyrus.google.com}/tls/novalidate-cert/norsh/service=imap/user=cadm", "cadm", "secret", OP_HALFOPEN); As I said, it works....
1
2803
by: joshfeingold | last post by:
I have a CRM web application that checks users' email accounts and downloads them to the application. One of the users has a gmail account and I am trying to get access to this account using the PHP imap_open (which works with POP mailboxes) function. I have tried various methods for the values of the domain, but nothing seems to work. Has anyone successfully done this? Thanks,
4
20009
by: qccitchy | last post by:
G'day, I am so stuck I am pulling what's left of my hair out. Any gurus out there that can help me with this would be greatly appreciated. I am relatively new to php and am trying to connect to a pop 3 mail server using imap_open. I have read the manual and numerous website, tryed numerous classes, been confused, lost my mind, gone back to basics and I am at wits end.
1
3245
by: th.evensen | last post by:
Hi, I've written a script that use the imap functions to check my accounts for new messages. It works great from a server, but when trying to run it from the command line I get the following error: Fatal error: Call to undefined function: imap_open()
0
10509
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10281
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10256
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10039
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9095
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7584
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6824
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2953
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.