콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
8664 화면

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
7353
4
1월 24
19207
3
10월 19
3884
2
8월 18
6944
0
3월 15
3699