svgmx5 Posted July 4, 2012 Share Posted July 4, 2012 I'm trying to test a connection via imap. however I keep getting a 500 error at times. Below is the example of the script that i use and this gets me a 500 error. The server is um.domainanem.com this is a Telinta PORTAUM system and their support said to use that as the server name. I have also tried adding um.domainanme.com:143 & um.domainname.com:143/imap $server = 'um.domainname.com'; $login = '[email protected]'; $password = '1234'; $connection = imap_open("{".$server."}", $login, $password); The weird thing is that when i use brackets on the server i get a 500 error, and if i don't use brackets i get nothing on the page. So with the example below i don't get an error, i just get a blank page. $connection = imap_open($server, $login, $password); I'm assuming that i need the brackets....anyways, if anyone can help me out that would be great or let me know if'm writing it correctly. Again thank you Quote Link to comment https://forums.phpfreaks.com/topic/265211-having-problems-using-imap_open/ Share on other sites More sharing options...
Barand Posted July 4, 2012 Share Posted July 4, 2012 try <?php $server = "{mailservername.domain.com:110/pop3}INBOX"; $login = 'domain\\123456'; $password = 'password'; /* try to connect */ $inbox = imap_open($server,$login,$password) or die('Cannot connect to server: ' . imap_last_error()); ?> Quote Link to comment https://forums.phpfreaks.com/topic/265211-having-problems-using-imap_open/#findComment-1359175 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.