diff --git a/client_bulk_mail.php b/client_bulk_mail.php index a6ddf3599..8ecb8fc03 100644 --- a/client_bulk_mail.php +++ b/client_bulk_mail.php @@ -5,6 +5,10 @@ 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" ); @@ -15,7 +19,7 @@