Retrieve email with php imap_open() problem

Status
Not open for further replies.

reports2

New Member
Messages
16
Reaction score
0
Points
1
Hi,
I'm having trouble with the php imap_open() function in my code.

When I run the code, I receive this message….

Warning: imap_open(): Couldn't open stream xo5.x10hosting.com:993 in /home/***mysite***/public_html/***mycode****.php on line 43
imap connection error

The php code is...

$server = "xo5.x10hosting.com:993";
$username = "email@reports.x10host.com";
$password = "password";

echo"$server<br>";
echo"$username <br>";
echo"$password <br>";

$imap = imap_open($server, $username, $password) or die("imap connection error");
$message_count = imap_num_msg($imap);
for ($m = 1; $m <= $message_count; ++$m){


Has anyone come across this before?
 

reports2

New Member
Messages
16
Reaction score
0
Points
1
So, to simplify the question, does imap_open() work on free servers?
 
Status
Not open for further replies.
Top