diff --git a/admin_bulk_mail.php b/admin_bulk_mail.php index 1185e92e5..d2f775b79 100644 --- a/admin_bulk_mail.php +++ b/admin_bulk_mail.php @@ -5,6 +5,10 @@ $sql = mysqli_query($mysqli, "SELECT * FROM contacts WHERE contact_archived_at IS NULL AND contact_email != '' + AND (contact_primary = 1 OR + contact_important = 1 OR + contact_billing = 1 OR + contact_technical = 1) ORDER BY contact_primary DESC, contact_important DESC" ); diff --git a/client_bulk_mail.php b/client_bulk_mail.php index 41d68cb22..472dd33a9 100644 --- a/client_bulk_mail.php +++ b/client_bulk_mail.php @@ -5,10 +5,6 @@ WHERE contact_client_id = $client_id AND contact_archived_at IS NULL AND contact_email != '' - AND (contact_primary = 1 OR - contact_important = 1 OR - contact_billing = 1 OR - contact_technical = 1) ORDER BY contact_primary DESC, contact_important DESC" );