{ "info": { "author": "Dipcode", "author_email": "team@dipcode.com", "bugtrack_url": null, "classifiers": [ "Environment :: Web Environment", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Framework :: Django :: 1.9", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "Django CBMail\n================\n\n|Build Status| |Codacy Badge| |Coverage Status| |BCH compliance| |Pypi|\n\nDjango module to easily send templated emails in a DRY way using\nclasses, just like Class Based Views.\n\nTable of contents:\n * `How to install`_;\n * `Example usage`_;\n * `Settings reference`_;\n * `License`_.\n\nHow to install\n--------------\n\nTo install the app run :\n\n.. code:: shell\n\n pip install django-cbmail\n\nor add it to the list of requirements of your project.\n\nExample usage\n-------------\n\nCreate a mails.py and use the BaseMail class to define your email like:\n\n.. code:: python\n\n from cbmail.base import BaseMail\n\n class ExampleEmail(BaseMail):\n \"\"\" \"\"\"\n template_name = \"myapp/mails/myemail.html\"\n subject = \"Example subject of email\"\n\nAnd send it using:\n\n.. code:: python\n\n ExampleEmail().send(['example@example.com'])\n\nWhere ``['example@example.com']`` is a list of emails of destination or\na object with ``get_mailing_list`` method defined\n\nSettings reference\n------------------\n\nTo give support to this app we need to declare de following django\nsettings:\n\n.. code:: python\n\n DEFAULT_FROM_EMAIL = \"example@example.com\"\n\n CBMAIL = {\n 'DEFAULT_REPLY_TO': \"examplereplyto@example.com\",\n 'DEFAULT_SUJECT': \"Example subject\",\n 'BASE_URL': \"https://domain.com\",\n 'EXTRA_DATA': {},\n 'WHITELIST': []\n }\n\n- **DEFAULT\\_FROM\\_EMAIL**: Default setting of Django that defines the\n from email\n- **DEFAULT\\_REPLY\\_TO**: Default reply to be used on emails\n- **DEFAULT\\_SUJECT**: Default subject to be used on emails\n- **WHITELIST**: List of valid emails to send to\n- **BASE\\_URL**: The base url of your website\n- **EXTRA\\_DATA**: Any extra data intended to be used on all emails\n (This is injected on context of template)\n\nLicense\n-------\n\nMIT license, see the LICENSE file. You can use obfuscator in open source\nprojects and commercial products.\n\n.. _How to install: #how-to-install\n.. _Example usage: #example-usage\n.. _Settings reference: #settings-reference\n.. _License: #license\n\n.. |Build Status| image:: https://travis-ci.org/dipcode-software/django-cbmail.svg?branch=master\n :target: https://travis-ci.org/dipcode-software/django-cbmail\n.. |Codacy Badge| image:: https://api.codacy.com/project/badge/Grade/d01ebbe43c684d478cacc530e44633ad\n :target: https://www.codacy.com/app/srtabs/django-cbmail?utm_source=github.com&utm_medium=referral&utm_content=dipcode-software/django-cbmail&utm_campaign=Badge_Grade\n.. |Coverage Status| image:: https://coveralls.io/repos/github/dipcode-software/django-cbmail/badge.svg?branch=master\n :target: https://coveralls.io/github/dipcode-software/django-cbmail?branch=master\n.. |BCH compliance| image:: https://bettercodehub.com/edge/badge/dipcode-software/django-cbmail?branch=master\n :target: https://bettercodehub.com/\n.. |Pypi| image:: https://img.shields.io/pypi/v/django-cbmail.svg?style=flat\n :target: https://pypi.python.org/pypi/django-cbmail\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dipcode-software/django-cbmail/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-cbmail", "package_url": "https://pypi.org/project/django-cbmail/", "platform": "", "project_url": "https://pypi.org/project/django-cbmail/", "project_urls": { "Homepage": "https://github.com/dipcode-software/django-cbmail/" }, "release_url": "https://pypi.org/project/django-cbmail/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "Django module to easily send templated emails in a DRY way", "version": "0.1.1" }, "last_serial": 3177166, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5c1041ca223a5abf1817a7bd5b8c1cd5", "sha256": "3defce5898d7c86300b812b93cd0c31b83ccd9e46b1b39e813032c816af3984d" }, "downloads": -1, "filename": "django_cbmail-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "5c1041ca223a5abf1817a7bd5b8c1cd5", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 11092, "upload_time": "2017-09-14T17:54:18", "url": "https://files.pythonhosted.org/packages/ca/c2/5c1fc2f5cec3e13cc1c160fcd9859d246c5ffd18b22903b4d03336ed1d20/django_cbmail-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "082aafaefd8b1281824aa415556feaa5", "sha256": "e3a5cee7d23a36f2dc74461fbb43d85fb4c964b28ab676e7c31c12521a358263" }, "downloads": -1, "filename": "django-cbmail-0.1.0.tar.gz", "has_sig": false, "md5_digest": "082aafaefd8b1281824aa415556feaa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7253, "upload_time": "2017-09-14T17:54:21", "url": "https://files.pythonhosted.org/packages/a8/87/6ff52b7981c6c95168644b44fbb8575dc0e2eb0ec1fe40cae1d15ad91e83/django-cbmail-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "d0616650131f6c6fea0bb8e88dac3791", "sha256": "f57cec171d45a51940919bbb9ad3c8e4350c16d2d278b52cc684eed3eb580809" }, "downloads": -1, "filename": "django_cbmail-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "d0616650131f6c6fea0bb8e88dac3791", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10395, "upload_time": "2017-09-15T18:44:33", "url": "https://files.pythonhosted.org/packages/39/93/b1fe479ef2dba99028ffbd456da326a36d0d508ea619b7f5676f28a7d3f5/django_cbmail-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59ed4590226e571d2908446a8b488178", "sha256": "1558eeec688b6a5200a0957bd99301a6362b19574548a1456bd3d7a6b7471487" }, "downloads": -1, "filename": "django-cbmail-0.1.1.tar.gz", "has_sig": false, "md5_digest": "59ed4590226e571d2908446a8b488178", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10027, "upload_time": "2017-09-15T18:44:35", "url": "https://files.pythonhosted.org/packages/50/57/7e33a1ee9be5f9456b5e39173050441875fc437da80100eefc2d9c526ec5/django-cbmail-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d0616650131f6c6fea0bb8e88dac3791", "sha256": "f57cec171d45a51940919bbb9ad3c8e4350c16d2d278b52cc684eed3eb580809" }, "downloads": -1, "filename": "django_cbmail-0.1.1-py2-none-any.whl", "has_sig": false, "md5_digest": "d0616650131f6c6fea0bb8e88dac3791", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 10395, "upload_time": "2017-09-15T18:44:33", "url": "https://files.pythonhosted.org/packages/39/93/b1fe479ef2dba99028ffbd456da326a36d0d508ea619b7f5676f28a7d3f5/django_cbmail-0.1.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "59ed4590226e571d2908446a8b488178", "sha256": "1558eeec688b6a5200a0957bd99301a6362b19574548a1456bd3d7a6b7471487" }, "downloads": -1, "filename": "django-cbmail-0.1.1.tar.gz", "has_sig": false, "md5_digest": "59ed4590226e571d2908446a8b488178", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10027, "upload_time": "2017-09-15T18:44:35", "url": "https://files.pythonhosted.org/packages/50/57/7e33a1ee9be5f9456b5e39173050441875fc437da80100eefc2d9c526ec5/django-cbmail-0.1.1.tar.gz" } ] }