configured
[bMailZu.git] / send_mail.php
blob53e209e6303ec063c1fe0d2c1499eb66e3a73660
1 <?php
2 /**
3 * This file is the 'read mail' page. Logged in users can:
4 * - read the content of a specific message
5 * - view the full headers
6 * - view the original content
7 * - release or delete the viewed message
9 * @author Nicolas Peyrussie <peyrouz@users.sourceforge.net>
10 * @version 04-22-05
11 * @package MailZu
13 * Copyright (C) 2005 - 2007 MailZu
14 * License: GPL, see LICENSE
16 /**
17 * Include Template class
19 include_once('lib/Template.class.php');
20 /**
21 * Include control panel-specific output functions
23 include_once('templates/common.template.php');
24 /**
25 * Include sendmail to admin specific output functions
27 include_once('templates/sendmail.template.php');
29 if (!Auth::is_logged_in()) {
30 Auth::print_login_msg(); // Check if user is logged in
33 $_SESSION['sessionNav'] = "Email Administrator";
35 $t = new Template(translate('Email Administrator'));
37 $t->printHTMLHeader();
38 $t->printWelcome();
39 $t->startMain();
41 // Break table into 2 columns, put quick links on left side and all other tables on the right
42 startQuickLinksCol();
43 showQuickLinks(); // Print out My Quick Links
44 startDataDisplayCol();
46 $action = CmnFns::getGlobalVar('action', POST);
48 if (isset($action)){
49 verifyAndSendMail();
50 }else{
51 printsendmail();
54 endDataDisplayCol();
55 $t->endMain();
56 $t->printHTMLFooter();