Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2852 Lượt xem

Hi,

I am using Odoo 16 community edition. I want to change all From fields in all emails to a specified email. I followed below instructions from Odoo help page. I set --from-filter, and I set system parameter mail\\.default\\.from, and\\ add mail.catchall.domain 

It doesn't work. The From field is not changed in the out email.


--from-filter

Define which email address the SMTP configuration will apply to. The field can be a domain name or an entire email address, or it can remain empty. If the sender’s email address does not match this set filter, then the email will be encapsulated using a combination of the two system parameters: mail.default.from and mail.catchall.domain. For example, “Admin” => “Admin” .


Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhất

I read through the source code of mail / message / mail_server. I find that  mail.default.from and mail.catchall.domain are not used for this purpose at all. Eventually I write a custom module to override the function MailMessage.create() to change email_from value.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 7 25
627
5
thg 5 25
18038
0
thg 4 25
1027
1
thg 4 25
1495
0
thg 3 25
1327