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 protected]"; $pass = "password"; $conn = @imap_open("\{$server/imap}INBOX", $user, $pass) or die("Connection to server failed"); ?> 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 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 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 Link to comment https://forums.phpfreaks.com/topic/178484-imap-connection-help/#findComment-941265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.