--------------------------------------------------------------------------------------------
You are receiving this email as you have directly signed up to ".SITE_TITLE.".
If you do not wish to receive these messages in the future, please unsubscribe.

"; $query = "SELECT * FROM exchangerix_users WHERE email != '' AND newsletter='1' AND status='active'"; $result = smart_mysql_query($query); $total = mysqli_num_rows($result); $query2 = "SELECT * FROM exchangerix_users WHERE email != ''"; $result2 = smart_mysql_query($query2); $total2 = mysqli_num_rows($result2); if (isset($_POST['send']) && $_POST['send'] != "") { $etemplate = 0; $recipients = $_POST['recipients']; $allmessage = $_POST['allmessage']; if (!$username) $username = mysqli_real_escape_string($conn, getPostParameter('username')); unset($errs); $errs = array(); if (!($_POST['msubject'] && $_POST['allmessage'])) { $errs[] = "Please enter subject and message"; } else { switch ($recipients) { case "all": $query = "SELECT * FROM exchangerix_users WHERE email != ''"; break; case "subscribed": $query = "SELECT * FROM exchangerix_users WHERE email != '' AND newsletter='1' AND status='active'"; break; case "member": $query = "SELECT * FROM exchangerix_users WHERE user_id='$username' LIMIT 1"; break; } $result = smart_mysql_query($query); if (mysqli_num_rows($result) == 0) { $errs[] = "Member not found"; } } if (count($errs) == 0) { while ($row = mysqli_fetch_array($result)) { $msubject = trim($_POST['msubject']); $allmessage = $_POST['allmessage']; //////////////////////////////// Send Message ////////////////////////////// $msubject = str_replace("{first_name}", $row['fname'], $msubject); $allmessage = str_replace("{member_id}", $row['user_id'], $allmessage); $allmessage = str_replace("{first_name}", $row['fname'], $allmessage); $allmessage = str_replace("{last_name}", $row['lname'], $allmessage); $allmessage = str_replace("{unsubscribe_link}", SITE_URL."unsubscribe.php?key=".$row['unsubscribe_key'], $allmessage); $message = " ".$subject." ".$allmessage." "; $to_email = $row['fname'].' '.$row['lname'].' <'.$row['email'].'>'; SendEmail($to_email, $msubject, $message, $noreply_mail = 1); /////////////////////////////////////////////////////////////////////////////// } header ("Location: email2users.php?msg=1"); exit(); } else { $allerrors = ""; foreach ($errs as $errorname) $allerrors .= $errorname."
"; } } $title = "Send Email"; require_once ("inc/header.inc.php"); ?> 0) { ?>

Send Email

Your message has been successfully sent!
 

  subscribed
style="display:none;"> 0) { ?>
From: <>   edit
Send To:
User ID:To: <>
Template:
Subject:
 

Your message can use the following variables:

{member_id} - Member ID, {first_name} - First Name, {last_name} - Last Name, {unsubscribe_link} - Unsubscribe Link


 
 

Send Email

There are no members at this time.