29 lines
No EOL
716 B
PHP
29 lines
No EOL
716 B
PHP
<?php
|
|
//-------------------------- wichtige noch zu bearbeitende Änderungen !!!!!!!!!!! --------- HEUTE
|
|
$server='{188.68.47.65:993/imap/ssl/validate-cert}INBOX';
|
|
$adresse='dispo@jb-transport.de';
|
|
$password='nV57eeeM';
|
|
$mbox = imap_open($server, $adresse, $password, OP_READONLY);
|
|
|
|
|
|
$imap = imap_open($dns,$email,$password ) or die("Cannot Connect ".imap_last_error());
|
|
// if ($imap) {
|
|
|
|
$numMessages = imap_num_msg($imap);
|
|
echo $numMessages;
|
|
|
|
// }
|
|
echo $imap;
|
|
/*
|
|
$no=1;
|
|
$headers = imap_headers($mbox);
|
|
$text = imap_fetchbody($mbox, $no, 1);
|
|
|
|
for($i = 0; $i < count($headers); ++$i)
|
|
{
|
|
echo "Header: ".$headers[$i]."<br>";
|
|
echo "Body: ".imap_fetchbody($mbox, $i+1, 1)."<br>";
|
|
echo "<hr/>";
|
|
}
|
|
*/
|
|
?>
|