Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2020-04-24 13:56:21 +02:00
parent 59f52abd23
commit 4c7172be5d
2 changed files with 6 additions and 2 deletions

View File

@@ -1176,7 +1176,10 @@ def sendmail(request):
subject = 'Rowsandall Contact Form:'+form.cleaned_data['subject']
message = form.cleaned_data['message']
fullemail = firstname + " " + lastname + " " + "<" + email + ">"
send_mail(subject, message, fullemail, ['info@rowsandall.com'])
try:
send_mail(subject, message, fullemail, ['info@rowsandall.com'])
except:
messages.error(request,"Something went wrong trying to send the email")
return HttpResponseRedirect('/rowers/email/thankyou/')
else:
if not success: