django-mailer


Namedjango-mailer JSON
Version 2.3.2 PyPI version JSON
download
home_pagehttp://github.com/pinax/django-mailer/
SummaryA reusable Django app for queuing the sending of email
upload_time2024-05-22 19:38:53
maintainerNone
docs_urlNone
authorPinax Team
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            Django Mailer
-------------

.. image:: https://github.com/pinax/django-mailer/actions/workflows/build.yml/badge.svg
   :target: https://github.com/pinax/django-mailer/actions/workflows/build.yml

.. image:: https://img.shields.io/coveralls/pinax/django-mailer.svg
    :target: https://coveralls.io/r/pinax/django-mailer

.. image:: https://img.shields.io/pypi/dm/django-mailer.svg
    :target:  https://pypi.python.org/pypi/django-mailer/

.. image:: https://img.shields.io/pypi/v/django-mailer.svg
    :target:  https://pypi.python.org/pypi/django-mailer/

.. image:: https://img.shields.io/badge/license-MIT-blue.svg
    :target:  https://pypi.python.org/pypi/django-mailer/


django-mailer
-------------

``django-mailer`` is a reusable Django app for queuing the sending of email. It
works by storing email in the database for later sending. This has a number of
advantages:

- **robustness** - if your email provider goes down or has a temporary error,
  the email won’t be lost. In addition, since the ``send_mail()`` call always
  succeeds (unless your database is out of action), then the HTTP request that
  triggered the email to be sent won’t crash, and any ongoing transaction won’t
  be rolled back.

- **correctness** - when an outgoing email is created as part of a transaction,
  since it is stored in the database it will participate in transactions. This
  means it won’t be sent until the transaction is committed, and won’t be sent
  at all if the transaction is rolled back.


In addition, if you want to ensure that mails are sent very quickly, and without
heaving polling, django-mailer comes with a PostgreSQL specific ``runmailer_pg``
command. This uses PostgreSQL’s `NOTIFY
<https://www.postgresql.org/docs/16/sql-notify.html>`_/`LISTEN
<https://www.postgresql.org/docs/16/sql-listen.html>`_ feature to be able to
send emails as soon as they are added to the queue.


Limitations
-----------

File attachments are also temporarily stored in the database, which means if you
are sending files larger than several hundred KB in size, you are likely to run
into database limitations on how large your query can be. If this happens,
you'll either need to fall back to using Django's default mail backend, or
increase your database limits (a procedure that depends on which database you
are using).

With django-mailer, you can’t know in a Django view function whether the email
has actually been sent or not - the ``send_mail`` function just stores mail on
the queue to be sent later.

django-mailer was developed as part of the `Pinax ecosystem
<http://pinaxproject.com>`_ but is just a Django app and can be used
independently of other Pinax apps.


Requirements
------------

* Django >= 2.2

* Databases: django-mailer supports all databases that Django supports, with the following notes:

  * SQLite: you may experience 'database is locked' errors if the ``send_mail``
    command runs when anything else is attempting to put items on the queue. For this reason
    SQLite is not recommended for use with django-mailer.

  * MySQL: the developers don’t test against MySQL.


Usage
-----

See `usage.rst
<https://github.com/pinax/django-mailer/blob/master/docs/usage.rst#usage>`_ in
the docs.


Support
-------

The Pinax documentation is available at http://pinaxproject.com/pinax/.

This is an Open Source project maintained by volunteers, and outside this
documentation the maintainers do not offer other support. For cases where you
have found a bug you can file a GitHub issue. In case of any questions we
recommend you join the `Pinax Slack team <http://slack.pinaxproject.com>`_ and
ping the Pinax team there instead of creating an issue on GitHub. You may also
be able to get help on other programming sites like `Stack Overflow
<https://stackoverflow.com/>`_.


Contribute
----------

See `CONTRIBUTING.rst <https://github.com/pinax/django-mailer/blob/master/CONTRIBUTING.rst>`_ for information about contributing patches to ``django-mailer``.

See this `blog post including a video <http://blog.pinaxproject.com/2016/02/26/recap-february-pinax-hangout/>`_, or our `How to Contribute <http://pinaxproject.com/pinax/how_to_contribute/>`_ section for an overview on how contributing to Pinax works. For concrete contribution ideas, please see our `Ways to Contribute/What We Need Help With <http://pinaxproject.com/pinax/ways_to_contribute/>`_ section.


We also highly recommend reading our `Open Source and Self-Care blog post <http://blog.pinaxproject.com/2016/01/19/open-source-and-self-care/>`_.


Code of Conduct
---------------

In order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a `code of conduct <http://pinaxproject.com/pinax/code_of_conduct/>`_.
We ask you to treat everyone as a smart human programmer that shares an interest in Python, Django, and Pinax with you.



Pinax Project Blog and Twitter
------------------------------

For updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out `our blog <http://blog.pinaxproject.com>`_.



            

Raw data

            {
    "_id": null,
    "home_page": "http://github.com/pinax/django-mailer/",
    "name": "django-mailer",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": "Pinax Team",
    "author_email": "developers@pinaxproject.com",
    "download_url": "https://files.pythonhosted.org/packages/83/36/47e879aa64502624278dec22dae04505c3463126529bd944628c17f7a849/django-mailer-2.3.2.tar.gz",
    "platform": null,
    "description": "Django Mailer\n-------------\n\n.. image:: https://github.com/pinax/django-mailer/actions/workflows/build.yml/badge.svg\n   :target: https://github.com/pinax/django-mailer/actions/workflows/build.yml\n\n.. image:: https://img.shields.io/coveralls/pinax/django-mailer.svg\n    :target: https://coveralls.io/r/pinax/django-mailer\n\n.. image:: https://img.shields.io/pypi/dm/django-mailer.svg\n    :target:  https://pypi.python.org/pypi/django-mailer/\n\n.. image:: https://img.shields.io/pypi/v/django-mailer.svg\n    :target:  https://pypi.python.org/pypi/django-mailer/\n\n.. image:: https://img.shields.io/badge/license-MIT-blue.svg\n    :target:  https://pypi.python.org/pypi/django-mailer/\n\n\ndjango-mailer\n-------------\n\n``django-mailer`` is a reusable Django app for queuing the sending of email. It\nworks by storing email in the database for later sending. This has a number of\nadvantages:\n\n- **robustness** - if your email provider goes down or has a temporary error,\n  the email won\u2019t be lost. In addition, since the ``send_mail()`` call always\n  succeeds (unless your database is out of action), then the HTTP request that\n  triggered the email to be sent won\u2019t crash, and any ongoing transaction won\u2019t\n  be rolled back.\n\n- **correctness** - when an outgoing email is created as part of a transaction,\n  since it is stored in the database it will participate in transactions. This\n  means it won\u2019t be sent until the transaction is committed, and won\u2019t be sent\n  at all if the transaction is rolled back.\n\n\nIn addition, if you want to ensure that mails are sent very quickly, and without\nheaving polling, django-mailer comes with a PostgreSQL specific ``runmailer_pg``\ncommand. This uses PostgreSQL\u2019s `NOTIFY\n<https://www.postgresql.org/docs/16/sql-notify.html>`_/`LISTEN\n<https://www.postgresql.org/docs/16/sql-listen.html>`_ feature to be able to\nsend emails as soon as they are added to the queue.\n\n\nLimitations\n-----------\n\nFile attachments are also temporarily stored in the database, which means if you\nare sending files larger than several hundred KB in size, you are likely to run\ninto database limitations on how large your query can be. If this happens,\nyou'll either need to fall back to using Django's default mail backend, or\nincrease your database limits (a procedure that depends on which database you\nare using).\n\nWith django-mailer, you can\u2019t know in a Django view function whether the email\nhas actually been sent or not - the ``send_mail`` function just stores mail on\nthe queue to be sent later.\n\ndjango-mailer was developed as part of the `Pinax ecosystem\n<http://pinaxproject.com>`_ but is just a Django app and can be used\nindependently of other Pinax apps.\n\n\nRequirements\n------------\n\n* Django >= 2.2\n\n* Databases: django-mailer supports all databases that Django supports, with the following notes:\n\n  * SQLite: you may experience 'database is locked' errors if the ``send_mail``\n    command runs when anything else is attempting to put items on the queue. For this reason\n    SQLite is not recommended for use with django-mailer.\n\n  * MySQL: the developers don\u2019t test against MySQL.\n\n\nUsage\n-----\n\nSee `usage.rst\n<https://github.com/pinax/django-mailer/blob/master/docs/usage.rst#usage>`_ in\nthe docs.\n\n\nSupport\n-------\n\nThe Pinax documentation is available at http://pinaxproject.com/pinax/.\n\nThis is an Open Source project maintained by volunteers, and outside this\ndocumentation the maintainers do not offer other support. For cases where you\nhave found a bug you can file a GitHub issue. In case of any questions we\nrecommend you join the `Pinax Slack team <http://slack.pinaxproject.com>`_ and\nping the Pinax team there instead of creating an issue on GitHub. You may also\nbe able to get help on other programming sites like `Stack Overflow\n<https://stackoverflow.com/>`_.\n\n\nContribute\n----------\n\nSee `CONTRIBUTING.rst <https://github.com/pinax/django-mailer/blob/master/CONTRIBUTING.rst>`_ for information about contributing patches to ``django-mailer``.\n\nSee this `blog post including a video <http://blog.pinaxproject.com/2016/02/26/recap-february-pinax-hangout/>`_, or our `How to Contribute <http://pinaxproject.com/pinax/how_to_contribute/>`_ section for an overview on how contributing to Pinax works. For concrete contribution ideas, please see our `Ways to Contribute/What We Need Help With <http://pinaxproject.com/pinax/ways_to_contribute/>`_ section.\n\n\nWe also highly recommend reading our `Open Source and Self-Care blog post <http://blog.pinaxproject.com/2016/01/19/open-source-and-self-care/>`_.\n\n\nCode of Conduct\n---------------\n\nIn order to foster a kind, inclusive, and harassment-free community, the Pinax Project has a `code of conduct <http://pinaxproject.com/pinax/code_of_conduct/>`_.\nWe ask you to treat everyone as a smart human programmer that shares an interest in Python, Django, and Pinax with you.\n\n\n\nPinax Project Blog and Twitter\n------------------------------\n\nFor updates and news regarding the Pinax Project, please follow us on Twitter at @pinaxproject and check out `our blog <http://blog.pinaxproject.com>`_.\n\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A reusable Django app for queuing the sending of email",
    "version": "2.3.2",
    "project_urls": {
        "Homepage": "http://github.com/pinax/django-mailer/"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6fdf65d30943246e2895f084075ab35811571e1bfe6933c8ab8d2eb4a9c4869c",
                "md5": "e07d46447b4a5219db7e373f002e6350",
                "sha256": "c7ef5ad63d5484246908bd1ce583c22837c66c1a7b593c9b816f4ead2421c995"
            },
            "downloads": -1,
            "filename": "django_mailer-2.3.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e07d46447b4a5219db7e373f002e6350",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 25803,
            "upload_time": "2024-05-22T19:38:52",
            "upload_time_iso_8601": "2024-05-22T19:38:52.253560Z",
            "url": "https://files.pythonhosted.org/packages/6f/df/65d30943246e2895f084075ab35811571e1bfe6933c8ab8d2eb4a9c4869c/django_mailer-2.3.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "833647e879aa64502624278dec22dae04505c3463126529bd944628c17f7a849",
                "md5": "2b6ae228577a09f23b5eb54fe4c53c1d",
                "sha256": "6ea0cbec09f57eb91376780a5f20ab7a834b942435a575e92e8e021f7838d78f"
            },
            "downloads": -1,
            "filename": "django-mailer-2.3.2.tar.gz",
            "has_sig": false,
            "md5_digest": "2b6ae228577a09f23b5eb54fe4c53c1d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 36308,
            "upload_time": "2024-05-22T19:38:53",
            "upload_time_iso_8601": "2024-05-22T19:38:53.797142Z",
            "url": "https://files.pythonhosted.org/packages/83/36/47e879aa64502624278dec22dae04505c3463126529bd944628c17f7a849/django-mailer-2.3.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-05-22 19:38:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "pinax",
    "github_project": "django-mailer",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "django-mailer"
}
        
Elapsed time: 0.62130s