From 6962cc5cfdb01c08b4b12cf66bc89f80e96d1c1f Mon Sep 17 00:00:00 2001 From: Christian Paminger Date: Fri, 12 Oct 2007 07:40:09 +0000 Subject: [PATCH] --- vilesci/kommunikation/erinnerungsmail.php | 45 ----------------------- 1 file changed, 45 deletions(-) delete mode 100644 vilesci/kommunikation/erinnerungsmail.php 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