From 806cc5ae34c769ef74bd7f33937f9bddd73add4e Mon Sep 17 00:00:00 2001 From: tsb1995 <47466105+tsb1995@users.noreply.github.com> Date: Mon, 28 Dec 2020 15:22:29 -0800 Subject: [PATCH] fix emailing --- main/views.py | 4 ++-- templates/instructors.html | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/views.py b/main/views.py index d98c958..6cbea00 100644 --- a/main/views.py +++ b/main/views.py @@ -51,7 +51,7 @@ def send_mail(request): subject = "Candal's Martial Arts Contact", message = "Hey! Thanks for contacting us at Candal's Martial Arts. We will be getting back to you as soon as possible to bring more information on our Martial Arts Classes", from_email = 'tsb1995@gmail.com', - recipient_list = ['tsb1995@gmail.com'], + recipient_list = [email], fail_silently=False, ) @@ -59,7 +59,7 @@ def send_mail(request): subject = "New Site Contact", message = "A possible new student has contacted us. Their name is {}, phone number {}, and email {}.".format(name, phone, email), from_email = 'tsb1995@gmail.com', - recipient_list = [email], + recipient_list = ['tsb1995@gmail.com'], fail_silently=False, ) diff --git a/templates/instructors.html b/templates/instructors.html index e89d590..58161c7 100644 --- a/templates/instructors.html +++ b/templates/instructors.html @@ -17,16 +17,16 @@
+
+
+
+