diff --git a/portal/login_reset.php b/portal/login_reset.php index 31a1b26f..41975630 100644 --- a/portal/login_reset.php +++ b/portal/login_reset.php @@ -73,12 +73,14 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $email, 'recipient_name' => $name, 'subject' => $subject, 'body' => $body ] - ]; + ]; $mail = addToMailQueue($mysqli, $data); // Error handling @@ -128,6 +130,8 @@ if ($_SERVER['REQUEST_METHOD'] == "POST") { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $email, 'recipient_name' => $name, 'subject' => $subject, diff --git a/portal/portal_post.php b/portal/portal_post.php index b09bdfc0..e7169ed9 100644 --- a/portal/portal_post.php +++ b/portal/portal_post.php @@ -53,6 +53,8 @@ if (isset($_POST['add_ticket'])) { // Queue Mail $data = [ [ + 'from' => $config_ticket_from_email, + 'from_name' => $config_ticket_from_name, 'recipient' => $config_ticket_new_ticket_notification_email, 'recipient_name' => $config_ticket_from_name, 'subject' => $email_subject, diff --git a/temp.php b/temp.php index 70c895ed..2831a549 100644 --- a/temp.php +++ b/temp.php @@ -64,6 +64,8 @@ if(isset($_GET['email_invoice'])){ // Queue Mail $data = [ [ + 'from' => $config_invoice_from_email, + 'from_name' => $config_invoice_from_name, 'recipient' => $contact_email_escaped, 'recipient_name' => $contact_name_escaped, 'subject' => $subject, @@ -100,6 +102,8 @@ if(isset($_GET['email_invoice'])){ // Queue Mail $data = [ [ + 'from' => $config_invoice_from_email, + 'from_name' => $config_invoice_from_name, 'recipient' => $billing_contact_email, 'recipient_name' => $billing_contact_name, 'subject' => $subject,