Update a few var names for the new mail addToMailQueue function

This commit is contained in:
johnnyq
2023-12-21 01:05:59 -05:00
parent a35a6f3ea0
commit cdaca0e06b
4 changed files with 214 additions and 39 deletions

View File

@@ -1002,8 +1002,8 @@ if (isset($_GET['email_invoice'])) {
// Queue Mail
$data = [
[
'email' => $contact_email_escaped,
'name' => $contact_name_escaped,
'recipient' => $contact_email_escaped,
'recipient_name' => $contact_name_escaped,
'subject' => $subject,
'body' => $body
]
@@ -1043,8 +1043,8 @@ if (isset($_GET['email_invoice'])) {
$data = [
[
'email' => $billing_contact_email,
'name' => $billing_contact_name,
'recipient' => $billing_contact_email,
'recipient_name' => $billing_contact_name,
'subject' => $subject,
'body' => $body
]
@@ -1172,8 +1172,8 @@ if (isset($_GET['force_recurring'])) {
$data = [
[
'email' => $contact_email,
'name' => $contact_name,
'recipient' => $contact_email,
'recipient_name' => $contact_name,
'subject' => $subject,
'body' => $body
]

View File

@@ -119,12 +119,13 @@ if (isset($_POST['add_ticket'])) {
// Email Ticket Contact
// Queue Mail
$data = [];
$data[] = [
'recipient' => $contact_email_escaped,
'recipient_name' => $contact_name_escaped,
'subject' => $subject_escaped,
'body' => $body_escaped,
$data = [
[
'recipient' => $contact_email_escaped,
'recipient_name' => $contact_name_escaped,
'subject' => $subject_escaped,
'body' => $body_escaped,
]
];
// Also Email all the watchers
@@ -134,11 +135,13 @@ if (isset($_POST['add_ticket'])) {
$watcher_email_escaped = sanitizeInput($row['watcher_email']);
// Queue Mail
$data[] = [
'recipient' => $watcher_email_escaped,
'recipient_name' => $watcher_email_escaped,
'subject' => $subject_escaped,
'body' => $body_escaped,
$data = [
[
'recipient' => $watcher_email_escaped,
'recipient_name' => $watcher_email_escaped,
'subject' => $subject_escaped,
'body' => $body_escaped,
]
];
}
addToMailQueue($mysqli, $data);