Instead of having to do all the form stuff in this separate function and passing around all of the success flags and the form object, you could add a method to the form class to send the email. That would simplify the view to something more like:

```python
if form.is_valid():
    form.send_mail()
else:
    # do other things
```