CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I have set up a server action as an email event and linked it into the workflow. The problem is that the HTML code i am using is getting sent as text i.e is not being processed? Am I missing something or doing something wrong? Thanks
The method that processes the message to be sent out is
ir.mail_server.build_email. It can be found in
addons/base/ir/ir_mail_server.py. The code comments mention the messages are created to RFC2822 which is specific to text emails. So to answer your question, HTML isn't supported for these automatic emails.
That being said, for Python applications, including HTML support in email messages is trivial. (see here. You (or someone) would just have to write a module for it.
About This Community
Odoo Training Center
|Asked: 2/12/13, 8:51 PM|
|Seen: 4006 times|
|Last updated: 3/16/15, 8:10 AM|