Fixing sending contact emails
This commit is contained in:
@@ -11,7 +11,7 @@ from django.contrib.auth.decorators import login_required
|
|||||||
|
|
||||||
def send_contact_email(email, subject, message):
|
def send_contact_email(email, subject, message):
|
||||||
subject = "New Contact Request for AI ML Operations, LLC"
|
subject = "New Contact Request for AI ML Operations, LLC"
|
||||||
from_email = email
|
from_email = "ryan@aimloperations.com"
|
||||||
to="ryan@aimloperations.com"
|
to="ryan@aimloperations.com"
|
||||||
d = {"subject": subject, "message": message, "email": email}
|
d = {"subject": subject, "message": message, "email": email}
|
||||||
html_content = get_template(r'emails/contact_email.html').render(d)
|
html_content = get_template(r'emails/contact_email.html').render(d)
|
||||||
@@ -101,4 +101,4 @@ def contact(request):
|
|||||||
|
|
||||||
capcha = None if settings.DEBUG else FormWithCaptcha()
|
capcha = None if settings.DEBUG else FormWithCaptcha()
|
||||||
return render(request, "public/contact.html", {'capchaForm': capcha})
|
return render(request, "public/contact.html", {'capchaForm': capcha})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user