Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Server Action Email sent in plain text

By
Mr Rhys Park
on 2/12/13, 8:51 PM 3,205 views

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?

Mr Rhys Park
on 2/14/13, 1:42 PM

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

Seyed Mohammad Motahar
on 11/21/13, 12:19 AM
2
Geoff Galik
On 2/21/13, 6:28 AM

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.

Daniel Reis
on 2/21/13, 6:39 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 2/12/13, 8:51 PM
Seen: 3205 times
Last updated: 3/16/15, 8:10 AM