Odoo Help


what is the difference between mail.message and mail.mail?

Bonnet Denis
on 3/21/13, 12:56 PM 2,996 views

I want to send e-mail with "mass mailing" function, but I just see there mail into mail.message and not mail.mail.

Is this normal?


Fabien Pinckaers (fp)

--Fabien Pinckaers (fp)--
Fabien Pinckaers (fp)
| 6 8 8
fsdsdfsdf, Belgium
--Fabien Pinckaers (fp)--

Odoo Founder & CEO

Fabien Pinckaers (fp)
On 3/22/13, 6:49 AM

A mail.message represents any message sent or received in OpenERP; both mail, internal messages or notes. The recipients of a message are contacts (res.partner) and the author is an email (text) and/or a contact. The mail.message may send email to recipients, according to their user's preferences.

A mail.mail inherits mail.message and is used only for sending emails. (like mass mailing) Sometimes, a mail.message will create a mail.mail that inherits from itself if the message has to be send by email to external persons.

You should usually not use mail.mail but always use mail.message. A message will handle all the logic of delivering emails to followers, according to their preferences, etc.

You can get the complete documentation of this module here: http://doc.openerp.com/trunk/developers/addons/mail/


Mustufa Rangwala (mra)

--Mustufa Rangwala (mra)--
Mustufa Rangwala (mra)
| 2 1 4
Ahmedabad, India
--Mustufa Rangwala (mra)--

- Around 7+ years of strong experience in Odoo (Formerly OpenERP) which is world's largest Open Source Business Applications driven by CEO Fabien Pinckaers. - Played key role in developing and maintaining various Odoo Product modules and integrating them on Open Source ERP Environment. - Experience on Scrum methodology for project management - Experience in Team Building - Quick Start Implementations. - Worked on almost all versions (4.0, 5.0, 6.0, 6.1, 7.0, SAAS, Trunk(8.0)...) of Odoo (Formerly OpenERP) . Specialities: Odoo Business Process And OpenERP Implementation. Odoo Application Support and Maintenance. Odoo Technical & Functional Training. Business Process Mapping & Gap Analysis (Functional and Technical Analysis)

Mustufa Rangwala (mra)
On 3/22/13, 2:11 AM

mail.message may contain email/comment/notifications but mail.mail is only about email.


AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
AJ Schrafel Paper Corp
| 4 5 8
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
On 3/21/13, 1:46 PM

mail.message holds the text of the message mail.mail holds other details about the mail being sent.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/21/13, 12:56 PM
Seen: 2996 times
Last updated: 3/16/15, 8:10 AM