nyten Posted May 14, 2014 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
Ice IT Support Posted May 15, 2014 Posted May 15, 2014 Did you try imap_open("{mail.nyten.heliohost.org:143}INBOX", "test@nyten.heliohost.org", "PASSWORD"); Quote
Byron Posted May 15, 2014 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
nyten Posted May 15, 2014 Author 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
Byron Posted May 15, 2014 Posted May 15, 2014 That's fine. I'll add the "Answered" to the title. Quote
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.