summaryrefslogtreecommitdiff
path: root/odoo/__init__.py
diff options
context:
space:
mode:
authorstd-odoo <std@odoo.com>2021-04-14 07:23:06 +0000
committerstd-odoo <std@odoo.com>2021-05-17 11:14:53 +0000
commit13ff118da832a339d9cb43d74bf0b5dd0cf3c036 (patch)
tree4221511c86ac6f84010f7dc921fa25a924f74331 /odoo/__init__.py
parent44e185dbd6ddeda7cdcd76882fa0bd231e9d3f37 (diff)
[IMP] mail: allow to force the FROM headers of the outgoing mail server
Purpose ======= We want to be able to force the FROM headers when we sent email in SMTP. So we can avoid the emails to be considered as spam. Specifications ============== This is done with 2 system parameters. If the system parameter `mail.force.smtp.from` is set we encapsulate all outgoing email from with the given value. If the previous system parameter is not set and if both `mail.dynamic.smtp.from` and `mail.catchall.domain` are set, we encapsulate the FROM only if the domain of the email is not the same as the domain of the catchall parameter. Otherwise we do not encapsulate the email (same behavior as before this commit). Task 2367946 See odoo/odoo/pull/61853 closes odoo/odoo#70854 X-original-commit: 044532aed6f796cd93e37556b4a8ce47d2c23a7c Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Olivier Dony (odo) <odo@openerp.com>
Diffstat (limited to 'odoo/__init__.py')
0 files changed, 0 insertions, 0 deletions