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
File details
Details for the file django-sendmail-form-0.1.1.tar.gz.
File metadata
- Download URL: django-sendmail-form-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80a4c3f428719a0b1f7641785db0702c803090bb33f421e2459690b00bfc0b24
|
|
| MD5 |
1b56452254b4f11a6cdf93cf97c467bd
|
|
| BLAKE2b-256 |
7f756657e001a5af7e13ff0b9a72ac520ed39e04ebc0e672dbaf0032ca4b96a6
|