thanks
This commit is contained in:
parent
d5bd8d2da8
commit
f7a374877a
2 changed files with 5 additions and 0 deletions
|
|
@ -15,6 +15,7 @@ def index(request):
|
|||
to = settings.CONTACT_TO_EMAIL
|
||||
msg = EmailMessage(subject, message, from_, to, reply_to=[form.cleaned_data['email']])
|
||||
msg.send(fail_silently=True)
|
||||
context['submitted'] = True
|
||||
else:
|
||||
context['form'] = form
|
||||
return render(request, 'contact.html', context)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue