Skip to main content

Faster and cancellable outgoing messages

Project description

Odoo Community Association

Deferred Message Posting

Alpha License: LGPL-3 OCA/mail Translate me on Weblate Try me on Runboat

This module enhances mail threads by using the mail queue by default.

Without this module, Odoo attempts to notify recipients of your message immediately. If your mail server is slow or you have many followers, this can mean a lot of time. Install this module and make Odoo more snappy!

All emails will be kept in the outgoing queue by at least 30 seconds, giving you some time to re-think what you wrote. During that time, you can still delete the message and start again.

Table of contents

Configuration

You usually don’t need to do anything. The module is configured appropriately out of the box. Just make sure the following scheduled actions are active:

  • Mail: Email Queue Manager (mail.ir_cron_mail_scheduler_action)

  • Notification: Send scheduled message notifications (mail.ir_cron_send_scheduled_message)

The mail queue processing is made by a cron job. This is normal Odoo behavior, not specific to this module. However, since you will start using that queue for every message posted by any user in any thread, this module configures that job to execute every minute by default.

You can still change that cadence after installing the module (although it is not recommended). To do so:

  1. Log in with an administrator user.

  2. Activate developer mode.

  3. Go to Settings > Technical > Automation > Scheduled Actions.

  4. Edit the action named “Mail: Email Queue Manager”.

  5. Lower down the frequency in the field Execute Every. Recommended: 1 minute.

Usage

To use this module, you need to:

  1. Go to the form view of any record that has a mail thread. It can be a partner, for example.

  2. Post a message.

The mail is now in the outgoing mail queue. It will be there for at least 30 seconds. It will be really sent the next time the “Mail: Email Queue Manager” cron job is executed.

While the message has not been yet sent:

  1. Click the little envelope. You will see a paper airplane icon, indicating it is still outgoing.

  2. Hover over the message and click on ⠇ > 🗑️ Delete. Mails will not be sent.

Known issues / Roadmap

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 to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Moduon

Contributors

Maintainers

This module is maintained by the OCA.

Odoo Community Association

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.

Current maintainer:

Yajo

This module is part of the OCA/mail project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

odoo_addon_mail_post_defer-18.0.1.0.1-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file odoo_addon_mail_post_defer-18.0.1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_mail_post_defer-18.0.1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17d42bb829a74460bcdb3075e3974c991442feb8ac0110098c9bf0c19499f166
MD5 bb17f4575687a9221b97d6a55e202f20
BLAKE2b-256 8f2c8f5f3b0e329d0b3f5caa607accaca8cc4b2fda4a5dccf0efb3438723a460

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page