*inline* attachment for mail.message and email.template

Registered by Jordi Llonch

Hi,

I have not found a way to include inline attachment in a html email. This is useful when you want to send a rich email with images on it.

One possible option will be add the inline attachments as attachments to the template (ir.attachment with res_model=email.template), then copy those attachments to mail.message on email.template.send_mail and finally add inline_attachments to ir.mail_server.build_email

Any ideas on how to implement inline attachments in email.template?

Thanks,
Jordi

References:
  http://stackoverflow.com/questions/920910/python-sending-multipart-html-emails-which-contain-embedded-images

Whiteboard

[odo-openerp]: have a look at this other stackoverflow question, specific to OpenERP http://stackoverflow.com/questions/13507104/is-it-possible-to-send-inline-image-using-email-template-in-openerp

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.