Argh,
My problem is that the page just stops at a cetain html code directly before the imap_open call.
I am really confused on thise on:
Username: ron
Password: james
I can't figure it out, this is the code I'm using: $pop_connect = imap_open("{mail.ledwichmedia.com:110/pop3/notls}INBOX",$accountfull,$password,OP_HALFOPEN) or die("Can not connect to POP mailbox"
;
$message_total = imap_num_msg($pop_connect);
If I take this out, all the html is displayed correctly but no php stuff because the php code is missing. I have spent hours trying to figure this one out. I have no idea.
This is the full code:
<td><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#333333" class="whitetext">
<td width="57"><div align="center">Delete</div></td>
<td width="265">Subject</td>
<td width="136">Sender</td>
<td width="60"><div align="center">Size</div></td>
<td width="73"><div align="center">Date</div></td>
<td width="109"><div align="center">Attachment(s)</div></td>
</tr>
<?
$pop_connect = imap_open("{mail.ledwichmedia.com:110/pop3/notls}INBOX",$accountfull,$password,OP_HALFOPEN) or die("Can not connect to POP mailbox"
;
$message_total = imap_num_msg($pop_connect);
if ($message_total==0){
echo "<tr bgcolor=\"#999999\">";
echo "<td colspan=\"6\"><div align=\"center\" class=\"whitetext style12\">No Messages To Display </div></td></tr>";
}
else{
for($i=$message_total;$i>0;$i--){
$message_info = imap_header($pop_connect,$i);
$email_from = substr($message_info->fromaddress,0,19);
if (strlen($message_info->Subject)>1) $email_subject = substr($message_info->Subject,0,30);
else $email_subject ="No Subject";
$email_date = substr($message_info->Date,5,11);
echo "<tr bgcolor=\"#999999\">";
echo "<td><div align=\"center\"><input type=\"checkbox\" name=\"$x\" value=\"DELETE\"></div></td>";
echo "<td class=\"whitetext\">$email_subject</td>";
echo "<td class=\"whitetext style11\">$email_from</td>";
echo "<td class=\"whitetext\"><div align=\"center\">SIZE</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">$email_date</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">Shrug</div></td></tr>";
}
}
imap_close($pop_connect);
?>
</table> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
Any help at all?
-Ron
My problem is that the page just stops at a cetain html code directly before the imap_open call.
I am really confused on thise on:
Username: ron
Password: james
I can't figure it out, this is the code I'm using: $pop_connect = imap_open("{mail.ledwichmedia.com:110/pop3/notls}INBOX",$accountfull,$password,OP_HALFOPEN) or die("Can not connect to POP mailbox"

$message_total = imap_num_msg($pop_connect);
If I take this out, all the html is displayed correctly but no php stuff because the php code is missing. I have spent hours trying to figure this one out. I have no idea.
This is the full code:
<td><table width="700" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
<tr bgcolor="#333333" class="whitetext">
<td width="57"><div align="center">Delete</div></td>
<td width="265">Subject</td>
<td width="136">Sender</td>
<td width="60"><div align="center">Size</div></td>
<td width="73"><div align="center">Date</div></td>
<td width="109"><div align="center">Attachment(s)</div></td>
</tr>
<?
$pop_connect = imap_open("{mail.ledwichmedia.com:110/pop3/notls}INBOX",$accountfull,$password,OP_HALFOPEN) or die("Can not connect to POP mailbox"

$message_total = imap_num_msg($pop_connect);
if ($message_total==0){
echo "<tr bgcolor=\"#999999\">";
echo "<td colspan=\"6\"><div align=\"center\" class=\"whitetext style12\">No Messages To Display </div></td></tr>";
}
else{
for($i=$message_total;$i>0;$i--){
$message_info = imap_header($pop_connect,$i);
$email_from = substr($message_info->fromaddress,0,19);
if (strlen($message_info->Subject)>1) $email_subject = substr($message_info->Subject,0,30);
else $email_subject ="No Subject";
$email_date = substr($message_info->Date,5,11);
echo "<tr bgcolor=\"#999999\">";
echo "<td><div align=\"center\"><input type=\"checkbox\" name=\"$x\" value=\"DELETE\"></div></td>";
echo "<td class=\"whitetext\">$email_subject</td>";
echo "<td class=\"whitetext style11\">$email_from</td>";
echo "<td class=\"whitetext\"><div align=\"center\">SIZE</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">$email_date</div></td>";
echo "<td class=\"whitetext\"><div align=\"center\">Shrug</div></td></tr>";
}
}
imap_close($pop_connect);
?>
</table> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </td>
</tr>
<tr>
Any help at all?
-Ron