From 957bbc5f558f9428fbdb6bd06aa87fa999442bae Mon Sep 17 00:00:00 2001 From: johnnyq Date: Thu, 21 Dec 2023 01:47:24 -0500 Subject: [PATCH] Update from name and email in other areas as well --- post/contact.php | 2 ++ post/event.php | 4 ++++ post/profile.php | 4 ++++ post/user.php | 2 ++ 4 files changed, 12 insertions(+) diff --git a/post/contact.php b/post/contact.php index a01fa4d7..473a68d4 100644 --- a/post/contact.php +++ b/post/contact.php @@ -121,6 +121,8 @@ if (isset($_POST['edit_contact'])) { // Queue Mail $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $email, 'recipient_name' => $contact_name, 'subject' => $subject, diff --git a/post/event.php b/post/event.php index 1494bea5..cbfddd9e 100644 --- a/post/event.php +++ b/post/event.php @@ -63,6 +63,8 @@ if (isset($_POST['add_event'])) { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $contact_email, 'recipient_name' => $contact_name, 'subject' => $subject, @@ -127,6 +129,8 @@ if (isset($_POST['edit_event'])) { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $contact_email, 'recipient_name' => $contact_name, 'subject' => $subject, diff --git a/post/profile.php b/post/profile.php index c557e88b..3b2b9435 100644 --- a/post/profile.php +++ b/post/profile.php @@ -43,6 +43,8 @@ if (isset($_POST['edit_profile'])) { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $user_old_email, 'recipient_name' => $name, 'subject' => $subject, @@ -173,6 +175,8 @@ if(isset($_POST['disable_2fa'])){ $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $session_email, 'recipient_name' => $session_name, 'subject' => $subject, diff --git a/post/user.php b/post/user.php index 553fe740..9adc59df 100644 --- a/post/user.php +++ b/post/user.php @@ -55,6 +55,8 @@ if (isset($_POST['add_user'])) { $data = [ [ + 'from' => $config_mail_from_email, + 'from_name' => $config_mail_from_name, 'recipient' => $email, 'recipient_name' => $name, 'subject' => $subject,