[16.0][MIG] mail_embed_image module#1499
Conversation
47b33e5 to
022e0d3
Compare
022e0d3 to
6dc1479
Compare
| ): | ||
| image_path = img.get("src") | ||
| try: | ||
| response = requests.get(image_path, timeout=10) |
There was a problem hiding this comment.
please add a test case where we have an image with a relative url, I believe this will fail here
| > | ||
| <span class="o_form_label">Email Preprocessing</span> | ||
| <div class="text-muted"> | ||
| Method used to embed images in HTML emails. CIDs attachment does not work with all email clients. Data SRC is more reliable. |
There was a problem hiding this comment.
that actually depends very much on the clients you target, with old outlooks it's the other way around. I'd propose not to make claim about what works better, and rather suggest to test with whatever are the expected mail clients
There was a problem hiding this comment.
Issue regarding Outlook has been tackled elsewhere. WIP
Need more testing regarding it before proposing.
d77d383 to
476b0ef
Compare
- CIDs are not working in some email managers (gmail and office365) To allow this behavior we need to change the content type to multipart/related and reorganize the parts (see comments in code) - A new option to embed images is to include the base64 content inside the src. - Then to select these options, a selected field has been added to company
476b0ef to
f81e4c2
Compare
|
There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. |
Superseed #1402