Ejemplo n.º 1
0
<?php

include "db.inc.php";
include "../classes/mernieku_atskaite.class.php";
include "../classes/mernieku_atskaite_mail.class.php";
include "../classes/mailing_list.class.php";
include "../check_login.php";
//if ($mlietotajs['g_report']!='Y') return;
if (!session_is_registered('xml_vars')) {
    session_start();
    session_register('xml_vars');
}
$MerniekuAtskaite_Mail = new MerniekuAtskaite_Mail();
$MerniekuDati_Export = new MerniekuDati_Export();
$MailingList = new MailingList();
$MailingList->getLists();
$sent = false;
if ($_SERVER['REQUEST_METHOD'] == 'POST') {
    if ($MerniekuAtskaite_Mail->setRecipients($_POST['recipients'])) {
        if ($MerniekuAtskaite_Mail->send_email()) {
            $sent = true;
        }
    }
}
?>
<style>
.normal {color:white; font-family:arial; size:12pt; text-decoration: none;}
.normal:hover {color:yellow; font-family:arial; size:12pt; text-decoration: none;}
.head {color:white; size:24pt; font-weight:bold;}
</style>
<html>