Odoo Help


Image as base64 instead of URL in mail mass marketing

Mario Gielissen | Openworx
on 9/14/15, 4:27 PM 1,406 views

When using  mass mail marketing with images on a Odoo 8.0 server with multiple databases, the images are broken in the e-mails. The problem is that mass mailing uses http://<server>/website/image/ir.attachment/..... to load the images from the Odoo webserver. This is no problem with a single database, but how to deal with multiple databases?

Or is there a way to encode the images as base64 in the e-mail?


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 9/14/15, 7:54 PM

You could use subdomains for direct select of the database or you could add "db" querystring parameter, but better use the subdomain for your <server> part using the dbfilter option in your config file filter the database based on the subdomain with a value like:


%d will be replaced with the subdomain name an use it as your database.

Using --db-filter

Jérémy Kersten (jke)
on 9/15/15, 1:55 AM

dbfilter when you specify in the config file

Axel Mendoza
on 9/15/15, 5:05 AM

I installed the module html_widget_embedded_picture and the images are attached to the mail als base64

Openworx, Mario Gielissen | Openworx
on 9/15/15, 7:37 AM

About This Community

This platform 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.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 9/14/15, 4:27 PM
Seen: 1406 times
Last updated: 9/15/15, 1:55 AM