mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 11:24:52 +00:00
Use the bulk mail function in bulk mailers for standardization, also fix unused vars in smtp settings form
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
|
||||
if (isset($_POST['send_bulk_mail_now'])) {
|
||||
|
||||
if ($_POST['contact']) {
|
||||
if ($_POST['contact_ids']) {
|
||||
|
||||
$mail_from = sanitizeInput($_POST['mail_from']);
|
||||
$mail_from_name = sanitizeInput($_POST['mail_from_name']);
|
||||
@@ -15,7 +15,7 @@ if (isset($_POST['send_bulk_mail_now'])) {
|
||||
$queued_at = sanitizeInput($_POST['queued_at']);
|
||||
|
||||
// Add Emails
|
||||
foreach($_POST['contact'] as $contact_id) {
|
||||
foreach($_POST['contact_ids'] as $contact_id) {
|
||||
$contact_id = intval($contact_id);
|
||||
|
||||
$sql = mysqli_query($mysqli,"SELECT * FROM contacts WHERE contact_id = $contact_id");
|
||||
|
||||
Reference in New Issue
Block a user