summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2005-12-11 08:52:21 +0000
committerChristian Fowler <spider@viovio.com>2005-12-11 08:52:21 +0000
commitb165747c5b5be667ae9d0f9cf5da504dfe04b5f7 (patch)
treedaf7bbe018053e82d6950320e637623b0288de38 /admin
parenta8760e54d6a9480e595b7e70e80f0dd6d57f053f (diff)
downloadnewsletters-b165747c5b5be667ae9d0f9cf5da504dfe04b5f7.tar.gz
newsletters-b165747c5b5be667ae9d0f9cf5da504dfe04b5f7.tar.bz2
newsletters-b165747c5b5be667ae9d0f9cf5da504dfe04b5f7.zip
queue of recipients even closer
Diffstat (limited to 'admin')
-rw-r--r--admin/send.php33
1 files changed, 2 insertions, 31 deletions
diff --git a/admin/send.php b/admin/send.php
index c5558fc..d455a55 100644
--- a/admin/send.php
+++ b/admin/send.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.6 2005/12/11 08:22:51 spiderr Exp $
+// $Header: /cvsroot/bitweaver/_bit_newsletters/admin/send.php,v 1.7 2005/12/11 08:52:21 spiderr Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -31,37 +31,8 @@ if( $gContent->isValid() && isset( $_REQUEST['preview'] ) ) {
$gBitSmarty->assign_by_ref( 'recipientList', $recipients );
} elseif( $gContent->isValid() && isset( $_REQUEST["send"] ) ) {
$emails = $gContent->getRecipients( $_REQUEST['send_group'] );
-vd( $emails );
-vd( $_REQUEST );
+ $gContent->queueRecipients( $emails );
die;
-
- $mail = new htmlMimeMail();
- $mail->setFrom('noreply@noreply.com');
- $mail->setSubject($_REQUEST['title']);
- $sent = 0;
-
- foreach ($subscribers as $email) {
- $to_array = array();
-
- $to_array[] = $email;
- if ($nl_info["unsub_msg"] = 'y') {
- $unsubmsg = $nllib->get_unsub_msg($_REQUEST["nl_id"], $email);
- } else {
- $unsubmsg = ' ';
- }
- $mail->setHeadCharset("utf-8");
- $mail->setTextCharset("utf-8");
- $mail->setHtmlCharset("utf-8");
- $mail->setFrom($sender_email);
- $mail->setHTML($_REQUEST['edit'] . $unsubmsg, strip_tags($_REQUEST['edit']));
-
- if ($mail->send($to_array, 'mail'))
- $sent++;
- }
-
- $gBitSmarty->assign('sent', $sent);
- $gBitSmarty->assign('emited', 'y');
- $nllib->replace_edition($_REQUEST["nl_id"], $_REQUEST['title'], $_REQUEST['edit'], $sent);
}
if( $gContent->isValid() ) {