OdooWiki OCA HUB

Outgoing Email by Model

outgoing_email_by_model folder_open OCA/mail open_in_new
Social License: AGPL-3

Allow to select an outgoing mail parameters per model, such as email_from, or mail_server_id.

To make it work, the model must inherit mail.thread.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Lets administrators choose a specific outgoing mail server and sender email address for each model in Odoo. These settings apply automatically to emails sent from records of that model.

This module adds two settings on each model configuration in Odoo: a preferred outgoing mail server and a preferred sender email address. You can find them on the model form (for example, when viewing a model under Settings > Technical > Models), but only for models that support messages and activities (those that inherit mail.thread). The fields are only visible to users with technical access rights.

When an email is sent from a record of that model, Odoo automatically uses the chosen mail server and sender address instead of the default ones. This happens for every email sent through the standard messaging system, such as notifications to followers or messages posted on records.

  • The mail server and email address are set per model, not per record.
  • The settings only take effect if the model supports messages (inherits mail.thread).
  • If no custom values are set, Odoo uses its normal defaults.
  • The fields are hidden and read-only for models that do not support messages.

The module touches the model configuration screen (ir.model) and the messaging system (mail.thread). It does not add new menus or reports.

Depends on

mail
Models and fields (1)
  • ir.model · extends an existing modeloutgoing_email, outgoing_mailserver_id

Text generated by AI (DeepSeek) from reading the Odoo 18.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 4 confirmed, 5 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 18.0

If you want to use a specific outgoing mail for a model, populate the following fields in the model record (Settings \> Technical \> Models) accordingly:

  • Outgoing Mailserver: Set an outgoing mail server. This will be used as the forced outgoing mail server for the model.
  • Outgoing Email: Set an email address. This will be used as the outgoing email for the model.

No verified information in OCA: Installation, Usage.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.