Odoo Help


Image as base64 instead of URL in mail mass marketing

Mario Gielissen | Openworx
on 9/14/15, 4:27 PM 1,121 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
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

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: 1121 times
Last updated: 9/15/15, 1:55 AM