From 78d5d9d3b622bca87804f7a69319cca0ad71161c Mon Sep 17 00:00:00 2001 From: Eric Rosas Date: Mon, 7 Oct 2024 16:47:47 -0700 Subject: [PATCH] Changed hardcoded emails to env vars for contact f Changed hardcoded emails to env vars for contact form --- api/config/contact-form.php | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/api/config/contact-form.php b/api/config/contact-form.php index 28505050..520ea193 100644 --- a/api/config/contact-form.php +++ b/api/config/contact-form.php @@ -1,11 +1,10 @@ request; -// 'toEmail' => 'bond@007.com', // override this one with env vars - if (!$request->getIsConsoleRequest()) { $topic = $request->getBodyParam("topic"); $to_list = null; @@ -13,22 +12,21 @@ if($topic != null) { switch($topic) { case "website_feedback": - $to_list = "eric.rosas@noirlab.edu,ericdrosas@gmail.com"; + $to_list = App::env('CONTACT_FORM_TO_ADDRESSES_FOR_FEEDBACK'); break; case "general": - $to_list = "erosas@lsst.org,ericdrosas@gmail.com"; + $to_list = App::env('CONTACT_FORM_TO_ADDRESSES_FOR_GENERAL'); break; case "education": - $to_list = "agoff@lsst.org,ericdrosas@gmail.com"; + $to_list = App::env('CONTACT_FORM_TO_ADDRESSES_FOR_EDUCATION'); break; case "media": - $to_list = "alexandra.goff@noirlab.edu,ericdrosas@gmail.com"; + $to_list = App::env('CONTACT_FORM_TO_ADDRESSES_FOR_MEDIA'); break; case "site_visit": - $to_list = "ericdrosas@gmail.com"; + $to_list = App::env('CONTACT_FORM_TO_ADDRESSES_FOR_VISITS'); break; default: - $to_list = "ericdrosas@gmail.com"; break; }