Jump to content

having problems using imap_open


svgmx5

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/265211-having-problems-using-imap_open/
Share on other sites

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());
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.