A simple Django app that provides ability to send email about object, created using form
Project description
=====
Django SendMail Form
=====
This Django app provides the ability to send an email containing info about an object, that is created using form.
Example
-----------
1. Install the package using pip::
pip install django-sendmail-form
2. Add the "sendmail_form" to your INSTALLED_APPS setting::
INSTALLED_APPS = (
...
'sendmail_form',
)
3. import the SendMailFormMixin::
from sendmail_form.forms import SendMailFormMixin
4. Inherit your form::
class MyForm(SendMailFormMixin, forms.ModelForm):
...
subject_template = "My feedback on {site_name}"
message_template = "Somebody left a message on {site}.<br>" \
"You can read it in admin panel.<br>" \
"{message}"
5. Have fun!
Django SendMail Form
=====
This Django app provides the ability to send an email containing info about an object, that is created using form.
Example
-----------
1. Install the package using pip::
pip install django-sendmail-form
2. Add the "sendmail_form" to your INSTALLED_APPS setting::
INSTALLED_APPS = (
...
'sendmail_form',
)
3. import the SendMailFormMixin::
from sendmail_form.forms import SendMailFormMixin
4. Inherit your form::
class MyForm(SendMailFormMixin, forms.ModelForm):
...
subject_template = "My feedback on {site_name}"
message_template = "Somebody left a message on {site}.<br>" \
"You can read it in admin panel.<br>" \
"{message}"
5. Have fun!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for django-sendmail-form-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8efa2a6a75d7c46b7497387d4f8d1783fd606cd2d1f646a71b30510ba7ca5c5 |
|
MD5 | b7a8eec7ec076faa8a474d660abe742b |
|
BLAKE2b-256 | c9885ce38262f9ea3f416b76d359f501c5338e520e3addb0e5c8a99dd437c778 |