跳至內容
選單
此問題已被標幟
1 回覆
8461 瀏覽次數

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

頭像
捨棄
作者

any ideas?

In addition to that, When we fetch incoming emails, OpenERP generates plain text from the bottom of the email which is customer signature.

最佳答案

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.

頭像
捨棄

Or OpenERP SA improves Server Actions to be able to use email_templates.

相關帖文 回覆 瀏覽次數 活動
3
1月 25
7083
4
1月 24
18950
3
10月 19
3695
2
8月 18
6803
0
3月 15
3516