How to do it...
Execute these two steps:
- Import the function to send an e-mail in the forms of your app. Then add the
savemethod that tries to send an e-mail to the selected recipient and fails silently with an error:
#email_messages/forms.py # -*- coding: UTF-8 -*- from django import forms from django.utils.translation import ugettext, ugettext_lazy as _ from django.core.mail import send_mail from django.c...
Save method in form instead of view
Share this highlighthttp://www.safaribooksonline.com/a/web-development-with/59145/