diff --git a/apps/tup-cms/src/apps/portal/apps.py b/apps/tup-cms/src/apps/portal/apps.py index ee5921fba..6ec38d03b 100644 --- a/apps/tup-cms/src/apps/portal/apps.py +++ b/apps/tup-cms/src/apps/portal/apps.py @@ -44,6 +44,13 @@ def submit_ticket(form_data): def send_confirmation_email(form_name, form_data): + + tour_receipt = "" + if form_name == "Tour Request Form": + tour_receipt = "

A copy of your tour request is provided below for your records:

\n" + for key in form_data: + tour_receipt += f"

{key}: {form_data[key]}

\n" + email_body = f"""

Greetings,

@@ -51,11 +58,12 @@ def send_confirmation_email(form_name, form_data):

+ {tour_receipt}

Thank you for your time,
TACC Support