List Page
Code: Select all
if (!isset($_GET['read']))
{
$mail = 'user_at_domain.com'; /* obviously a working email is used but this code will appear on a client so I'm not going to give spam bots more targets to shot at */
$pass = 'pass_here';
$mbox = imap_open("{mail.jabcreations.com:143/notls}", $mail, $pass);
$headers=imap_headers($mbox);
for($x=1; $x < count($headers); $x++)
{
$idx=($x-1);
echo '<div><a href="list.php?read='.$x.'">'.$headers[$idx].'</a></div>'."\n";
}
imap_close($mbox);
}Code: Select all
else if (isset($_GET['read']))
{
$mail = 'user_at_domain.com'; /* obviously a working email is used but this code will appear on a client so I'm not going to give spam bots more targets to shot at */
$pass = 'pass_here';
$mbox = imap_open("{mail.jabcreations.com:143/notls}", $mail, $pass);
$id = $_GET['read'];
$header=imap_header($mbox, $id);
/* The $header part is where I get the bad message ID from the $_GET['read']. */