diff --git a/vilesci/kommunikation/erinnerungsmail.php b/vilesci/kommunikation/erinnerungsmail.php deleted file mode 100644 index fc78b5f4c..000000000 --- a/vilesci/kommunikation/erinnerungsmail.php +++ /dev/null @@ -1,45 +0,0 @@ -, - * Andreas Oesterreicher and - * Rudolf Hangl . - */ -require_once('../config.inc.php'); - -if(!$conn = pg_pconnect(CONN_STRING)) - die('Fehler beim Connecten zur DB'); - -$qry = "SELECT distinct email FROM public.tbl_studiengang WHERE studiengang_kz!=0 AND email is not null"; - -$headers = "From: vilesci@technikum-wien.at"; -$message = "Dies ist eine automatische eMail!\nBitte überprüfen Sie die Lehrauftragsliste"; - -if($result = pg_query($conn, $qry)) -{ - while($row = pg_fetch_object($result)) - { - $to = "oesi@technikum-wien.at"; - $subject = "Erinnerung $row->email"; - - if(mail($to, $subject, $message, $headers)) - echo "Email an $to versandt\n"; - else - echo "Fehler beim Versenden des Erinnerungsmails an $to\n"; - } -} -?> \ No newline at end of file