Mail Outbound Static
mail_outbound_static · OCA/mail
OCA/social 10.0–17.0 → OCA/mail 18.0–19.0
Health
75/100
good
-
Security25/25No findings
-
Activity20/25Last human commit 12 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 10 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
1 model
1 view
0 HTTP endpoints
Description
This module brings Odoo outbound emails in to strict compliance with RFC-2822 by allowing for a dynamically configured From header, with the sender's e-mail being appended into the proper Sender header instead. To accomplish this we:
- Add a domain whitelist field in the mail server model. This one represent an allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to send the messages where the message 'From' email domain match with the domain whitelist. If there is not mail server that matches then will use the default mail server to send the message.
- Add a Email From field that will let us to email from a specific
address taking into account this conditions:
- If the sender domain match with the domain whitelist then the original message's 'From' will remain as it is and will not be changed because the mail server is able to send in the name of the sender domain.
- If the original message's 'From' does not match with the domain whitelist then the email From is replaced with the Email From field value.
- Add compatibility to define the smtp information in Odoo config file. Both smtp_from and smtp_whitelist_domain values will be used if there is not mail server configured in the system.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ir_mail_server_form |
IR Mail Server - From Address | ir.mail_server | form | Inherits base.ir_mail_server_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 1
New fields (2)
-
domain_whitelistCharhelp="Allowed Domains list separated by commas. If there is not given SMTP server it will let us to search the proper mail server to be used to sent the messages where the message 'From' email domain match with the domain whitelist." -
smtp_fromCharhelp="Set this in order to email from a specific address. If the original message's 'From' does not match with the domain whitelist then it is replaced with this value. If does match with the domain whitelist then the original message's 'From' will not change"string='Email From'
-
check_valid_domain_whitelist(self)@api.constrains('domain_whitelist') -
check_valid_smtp_from(self)@api.constrains('smtp_from') -
create(self, vals_list)@api.model_create_multi -
send_email(self, message, mail_server_id=None, smtp_server=None, *args, **kwargs)@api.model -
unlink(self) -
write(self, values)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…