PHPMailer
This commit is contained in:
@ -1,25 +1,24 @@
|
||||
<?php
|
||||
## INDEX gegen DB
|
||||
if (!isset($_SESSION)) {
|
||||
session_start();
|
||||
}
|
||||
#$_SESSION['sessionid'] = session_id();
|
||||
include_once '../classes/TestProjektSmarty.class_subdir.php';
|
||||
require_once("../config.inc.php");
|
||||
$smarty = new SmartyAdmin();
|
||||
if(!rechte('__noright__', $uid)){
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; URL=error.php\">";
|
||||
exit;
|
||||
}
|
||||
$templatename = substr(basename($_SERVER['PHP_SELF']), 0, -3) . "html";
|
||||
require_once "../language/german.inc.php";
|
||||
|
||||
$row10['originalname'] = "Einwilligungserklaerung_personenbezogene_Daten.pdf";
|
||||
$dateiarray = explode(".",$row10['originalname']);
|
||||
$endung = ".".$dateiarray[count($dateiarray)-1];
|
||||
$datei_short = substr($row10['originalname'],0,8)."[...]".$endung;
|
||||
echo $datei_short;
|
||||
|
||||
#$smarty->assign('action', "$action");
|
||||
#$smarty->display("modern/dashboard/$templatename");
|
||||
?>
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$mbox = imap_open("{imap.ionos.de:993/imap/ssl}", "info@ju-and-mi.de", "!S3ge1gP", OP_HALFOPEN)
|
||||
or die("can't connect: " . imap_last_error());
|
||||
if($mbox){
|
||||
echo "connect";
|
||||
}else{
|
||||
echo "fail";
|
||||
}
|
||||
$list = imap_getmailboxes($mbox, "{imap.ionos.de:993/imap/ssl}", "*");
|
||||
if (is_array($list)) {
|
||||
foreach ($list as $key => $val) {
|
||||
echo "($key) ";
|
||||
echo imap_utf7_decode($val->name) . ",";
|
||||
echo "'" . $val->delimiter . "',";
|
||||
echo $val->attributes . "<br />\n";
|
||||
}
|
||||
} else {
|
||||
echo "imap_getmailboxes failed: " . imap_last_error() . "\n";
|
||||
}
|
||||
|
||||
imap_close($mbox);
|
||||
?>
|
Reference in New Issue
Block a user