nyten Posted May 14, 2014 Share Posted May 14, 2014 Hi, I have tried to connect to my imap-mailbox via php...but it always spits out this error:Warning: imap_open() [function.imap-open]: Couldn't open stream [...] One of many tested versions:imap_open("{mail.nyten.heliohost.org:143}", "test@nyten.heliohost.org", "PASSWORD"); Please help me. Quote Link to comment Share on other sites More sharing options...
Ice IT Support Posted May 15, 2014 Share Posted May 15, 2014 Did you try imap_open("{mail.nyten.heliohost.org:143}INBOX", "test@nyten.heliohost.org", "PASSWORD"); Quote Link to comment Share on other sites More sharing options...
nyten Posted May 15, 2014 Author Share Posted May 15, 2014 Yes I've already tried...same error. Quote Link to comment Share on other sites More sharing options...
Byron Posted May 15, 2014 Share Posted May 15, 2014 Try something like this: <?php $hostname = "{localhost:993/imap/ssl/novalidate-cert}INBOX"; $username = "YOUR_USERNAME"; $password = "PASSWORD"; $inbox = imap_open($hostname,$username,$password) or die('Cannot connect to Mail' . imap_last_error()); echo "<h2>Connected to Mail!</h2>"; imap_close($inbox); ?> One more thing. This is not your username: test@nyten.heliohost.org. Your username for default mail is the same username you login with. Quote Link to comment Share on other sites More sharing options...
nyten Posted May 15, 2014 Author Share Posted May 15, 2014 Thank you both. It accepts the hostname localhost:993/imap/ssl/novalidate-cert test@nyten.heliohost.org is just an email address that I created to test this. Quote Link to comment Share on other sites More sharing options...
Byron Posted May 15, 2014 Share Posted May 15, 2014 So your problem is resolved then? Quote Link to comment Share on other sites More sharing options...
nyten Posted May 15, 2014 Author Share Posted May 15, 2014 Yes.I can't find the "solved-button" Quote Link to comment Share on other sites More sharing options...
Byron Posted May 15, 2014 Share Posted May 15, 2014 That's fine. I'll add the "Answered" to the title. Quote Link to comment 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.