Repository
OCA/mail · module folder · Try on Runboat
Module version
1.0.0
Category
Discuss
Folder size
0.04 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/mail
Last tracking update
2026-07-27 13:41:53
Authors
Odoo Community Association (OCA), Camptocamp
Maintainers
Odoo Community Association (OCA), Camptocamp
Committers
OCA-git-bot, oca-ci, David Gallay
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
None
System dependencies
None
Required by
None
Description
This module lets you simulate an incoming email directly from Odoo,
without a real mail server or SMTP client.

It adds a **Simulate Incoming Email** button (and matching *Action* menu entry) on
the Incoming Mail Server, opening a small composer (From, To, Cc, Bcc, Subject, Body).
On send, the email is used as if it had been fetched from a server,
it is then routed by alias and creates the target record
(helpdesk ticket, lead, task, ...).

It is meant for testing mail-driven flows on environments that have no inbound mail server,
like test instances.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
fetchmail_incoming_test_view_form fetchmail.incoming.test.form fetchmail.incoming.test form New
view_email_server_form fetchmail.server.form.incoming.test fetchmail.server form Inherits mail.view_email_server_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (1)

New fields (6)
  • body Html
  • email_bcc Char
    string='Bcc'
  • email_cc Char
    string='Cc'
  • email_from Char
    default=<expr> required=True string='From'
  • email_to Char
    help='Recipient address, typically the alias routing to the target model.' required=True string='To'
  • subject Char
Public methods (1)
  • action_process(self)
    Feed the composed email to the mail gateway as a real inbound one.