jasonaud Posted October 21, 2009 Share Posted October 21, 2009 Hello, i have a script already written adn works on other server but not sure why it wont work on my dedicated server. here is the code to connect to the imap server. i have a linux based server with cpanel/whm. imap is running. any help would be appriciated. <?php $server = "server"; $user = "email@domain.com"; $pass = "password"; $conn = @imap_open("\{$server/imap}INBOX", $user, $pass) or die("Connection to server failed"); ?> Quote Link to comment https://forums.phpfreaks.com/topic/178484-imap-connection-help/ Share on other sites More sharing options...
MadTechie Posted October 21, 2009 Share Posted October 21, 2009 remove the @ and read the error Quote Link to comment https://forums.phpfreaks.com/topic/178484-imap-connection-help/#findComment-941237 Share on other sites More sharing options...
jasonaud Posted October 21, 2009 Author Share Posted October 21, 2009 heres the error it gives. i removed the server for securty and just put server Warning: imap_open() [function.imap-open]: Couldn't open stream \{server/imap}INBOX Quote Link to comment https://forums.phpfreaks.com/topic/178484-imap-connection-help/#findComment-941244 Share on other sites More sharing options...
MadTechie Posted October 21, 2009 Share Posted October 21, 2009 it would seam that imap can't open that server path.. check server/port/path Quote Link to comment https://forums.phpfreaks.com/topic/178484-imap-connection-help/#findComment-941265 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.