Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection trouble #53

Open
ironmaiden187 opened this issue Jun 29, 2023 · 0 comments
Open

Connection trouble #53

ironmaiden187 opened this issue Jun 29, 2023 · 0 comments

Comments

@ironmaiden187
Copy link

ironmaiden187 commented Jun 29, 2023

For context updated an old internal php site from 5.4 to 7.4 recently and needed a replacement for php_imap so I'm attempting to use this project. Was able to get connected to a gmail account no problem. However I also need to connect to an ancient Nortel BCM50 phone system with a voicemail that's setup as an imap mail server. So far using the old connection script that previously worked in 5.4 just throws the following error:

Warning: imap_open(): Couldn't open stream {10.0.1.130:143}INBOX in /var/www/html/bartec/batchops.php on line 13. Source code in /var/www/html/bartec/vendor/javanile/php-imap2/src/Connection.php on line 81
Cannot connect: Can not authenticate to IMAP server: A0002 BAD Argument given to AUTHENTICATE when none expected

Connection line was simply the following:
$imap_conn = imap_open("{10.0.1.130:143}INBOX", 'user', 'pw') or die('Cannot connect: ' . print_r(imap_last_error(), true));

I've tried quite a few different connection options and none seem to let me connect. If anyone has tips for getting connected to an ancient phone system or some connection options I might be missing would be much appreciated.

Also of note was able to connect via telnet using the ip/port and login was accepted via telnet from the server running php/webserver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant