bug fixes
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user