Skip to main content
License: AGPL-3

Mass mailing sending queue

This module adds a queue for generating mail records when mass mailing ‘Send to All’ button is clicked. This is an additional queue, apart from the existing one (implemented in addons/mail) for doing the actual sending.

Configuration

There is a system parameter, ‘mail.mass_mailing.sending.batch_size’ (default value is 500), to control how many emails are created in each cron iteration (method ‘mail.mass_mailing.sending.cron()’).

Usage

Without this module, when ‘Send to All’ button is clicked at mass mailing form, all ‘mail.mail’ and ‘mail.mail.statistics’ objects are created. This process might take a long time if the recipient list is 10k+ and the famous “Take a minute to get a coffee, because it’s loading…” text might appear.

With this new queue, mass mailing will appear in ‘Sending’ state to the user until all emails are sent or failed. After ‘Send to All’ button is clicked, the user will quickly land to the mass mailing form.

In ‘Mass mailing’ form, a new tab “Sending tasks” has been added where the user can check the Sent mails history.

In ‘Settings > Technical > Email > Mass mailing sending’ allowed users can track all running mass mailing sending objects and see:

  • Pending recipients: Number of recipients for which the email is not yet created.

  • Start date: Date when user press ‘Send to All’ button.

  • Mails to be sent: number of emails waiting to be sent.

  • Sent mails: number of emails successfully sent.

  • Failed mails: number of unsent emails due to error.

NOTE: User will not be able to send the same mass mailing again if another one is ongoing. An UserError exception is raised in this case.

NOTE: If number of recipients are less than ‘batch_size / 2’, then all emails are created when ‘Send to All’ button is clicked (standard way). Although a sending object is created anyway in order to be consistent.

Try me on Runbot

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.

Credits

Images

  • Odoo Community Association: Icon.

Contributors

Maintainer

Odoo Community Association

This module is maintained by the OCA.

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

To contribute to this module, please visit https://odoo-community.org.

Release files for odoo8-addon-mass-mailing-sending-queue 8.0.1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for odoo8-addon-mass-mailing-sending-queue 8.0.1.0.0
File Interpreter ABI Platform
odoo8_addon_mass_mailing_sending_queue-8.0.1.0.0-py2-none-any.whl Python 2 none any Details

Release files / odoo8_addon_mass_mailing_sending_queue-8.0.1.0.0-py2-none-any.whl

Download URL odoo8_addon_mass_mailing_sending_queue-8.0.1.0.0-py2-none-any.whl
Size 30.4 kB
Tags Python 2
SHA-256 checksum
How to use checksums
88a1eaff6c401bb2b9b04770b7ba2a53dc6cbc683b0b09bfefd7ee624930b26b
BLAKE2b-256 checksum
How to use checksums
bcc0e92e69dbe241e457b6cbc9b9452cc343df67ff936972a0f01d407e144f58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page