cf660bb409f6fdaf7b9af3613b87a3a9ec4df8d5
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

1) <?php
2) /*
3) This file belongs to the Webinterface of schokokeks.org Hosting
4) 
5) Written 2008-2014 by schokokeks.org Hosting, namely
6)   Bernd Wurst <bernd@schokokeks.org>
7)   Hanno Böck <hanno@schokokeks.org>
8) 
9) To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
10) 
11) You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see 
12) http://creativecommons.org/publicdomain/zero/1.0/
13) 
14) Nevertheless, in case you use a significant part of this code, we ask (but not require, see the license) that you keep the authors' names in place and return your changes to the public. We would be especially happy if you tell us what you're going to do with this code.
15) */
16) 
17) require_once('inc/debug.php');
18) require_once('inc/security.php');
19) require_once('inc/icons.php');
20) 
21) require_once('vmail.php');
22) 
23) $section = 'email_vmail';
24) require_role(array(ROLE_SYSTEMUSER));
25) 
26) if (! isset($_REQUEST['account'])) {
27)   system_failure("Fehler beim Aufruf dieser Seite");
28) }
29) $id = $_REQUEST['account'];
30) $account = get_account_details($id);
31) 
32) $suspended = False;
33) if ($account['smtpreply']) {
34)   $suspended = True;
35) } else {
36)   $account['smtpreply'] = 'Diese E-Mail-Adresse wird nicht mehr verwendet. 
37) 
38) Bitte besuchen Sie unsere Website um eine aktuelle Kontaktmöglichkeit zu finden.';
39) }
40) 
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 9 years ago

41) title("E-Mail-Adresse stilllegen");
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

42) 
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 9 years ago

43) output('<p>Mit dieser Funktion können Sie eine E-Mail-Adresse stilllegen (so werden keine Nachrichten für diese Adresse angenommen) und dabei dem Absender einen eigenen, hier festgelegten Fehlertext zukommen lassen. Diese Methode hat nicht die Probleme, die ein klassische Autoresponder verursacht, da keine Antwort-E-Mails versendet werden. Der Absender erhält von seinem Mail-Server eine Fehlermeldung mit dem entsprechenden Text.</p>
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

44) <p><strong>Wichtig:</strong> Dieses Verfahren funktioniert nur, wenn die E-Mails wirklich nicht angenommen werden (Annahme wird verweigert), somit sind keine Weiterleitung und keine Speicherung möglich. Sie können aber natürlich im Text auf eine andere E-Mail-Adresse hinweisen.</p>');
45) 
46) $form = "<h4>Text der Fehlermeldung</h4>".
47)   "<p><textarea cols=\"80\" rows=\"10\" name=\"smtpreply\" id=\"smtpreply\">{$account['smtpreply']}</textarea></p>";
48) 
Bernd Wurst Abbrechen-Link korrigiert

Bernd Wurst authored 9 years ago

49) $form .= '<p><input id="submit" type="submit" value="Speichern" />&#160;&#160;&#160;&#160;';
50) if ($suspended) {
51)   $form .= internal_link('vmail', 'Abbrechen').'</p>';
52) } else {
53)   $form .= internal_link('edit', 'Abbrechen', "id=".$id).'</p>';
54) }
Bernd Wurst SMTP-seitige Autoresponder...

Bernd Wurst authored 9 years ago

55) output(html_form('vmail_edit_mailbox', 'save', 'action=suspend&id='.$id, $form));
56) 
57) if ($suspended) {
Bernd Wurst Update auf nicht mehr so ne...

Bernd Wurst authored 9 years ago

58)   output("<p><strong>".internal_link('save', 'Stilllegung aufheben', 'action=unsuspend&id='.$account['id'])."</strong></p>");