django-sendgrid-1.0.1
توضیحات
django-sendgrid
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | django-sendgrid-1.0.1 |
| نام | django-sendgrid |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Ryan Balfanz |
| ایمیل نویسنده | ryan@ryanbalfanz.net |
| آدرس صفحه اصلی | http://ryanbalfanz.github.com/django-sendgrid/ |
| آدرس اینترنتی | https://pypi.org/project/django-sendgrid/ |
| مجوز | UNKNOWN |
===============
django-sendgrid
===============
django-sendgrid is the easiest way to send e-mail with SendGrid. It uses the SendGrid SMTP API, as recommended.
Although it's rather simple to use, a example project is included to demonstrate usage.
Installation
------------
To install with PyPi::
pip install django-sendgrid
Usage
-----
Add ``sendgrid`` to your ``INSTALLED_APPS``::
INSTALLED_APPS = (
# Existing apps
"sendgrid",
)
Add the following to your ``settings``::
SENDGRID_EMAIL_HOST = "smtp.sendgrid.net"
SENDGRID_EMAIL_PORT = 587
SENDGRID_EMAIL_USERNAME = "your_sendgrid_username"
SENDGRID_EMAIL_PASSWORD = "your_sendgrid_password"
The API is similar to that of Django's; create a ``SendGridEmailMessage`` and send it::
>>> from sendgrid.message import SendGridEmailMessage
>>> email = SendGridEmailMessage('Subject', 'Body', 'ryan@ryanbalfanz.net', ['ryan@ryanbalfanz.net'])
>>> email.send()
Additional Information
----------------------
- https://docs.djangoproject.com/en/1.3/topics/email/
- http://ryanbalfanz.github.com/django-sendgrid/
- http://pypi.python.org/pypi/django-sendgrid
- http://djangopackages.com/packages/p/django-sendgrid/
نحوه نصب
نصب پکیج whl django-sendgrid-1.0.1:
pip install django-sendgrid-1.0.1.whl
نصب پکیج tar.gz django-sendgrid-1.0.1:
pip install django-sendgrid-1.0.1.tar.gz